aboutsummaryrefslogtreecommitdiff
path: root/src/poser.c
blob: 73fc7e80b3a2f1531f77a29ce81037ba1c1064c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdint.h>

#include "poser.h"
#include "survive_internal.h"

void PoserData_poser_raw_pose_func(PoserData *poser_data, SurviveObject *so, uint8_t lighthouse, FLT *pose) {
	if (poser_data->rawposeproc) {
		poser_data->rawposeproc(so, lighthouse, pose, poser_data->userdata);
	} else {
		so->ctx->rawposeproc(so, lighthouse, pose);
	}
}

void PoserData_lighthouse_pose_func(PoserData *poser_data, SurviveObject *so, uint8_t lighthouse, SurvivePose *pose) {
	if (poser_data->lighthouseposeproc) {
		poser_data->lighthouseposeproc(so, lighthouse, pose, poser_data->userdata);
	} else {
		so->ctx->lighthouseposeproc(so->ctx, lighthouse, pose);
	}
}