prosperon/source/engine/transform.h

26 lines
758 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef TRANSFORM_H
#define TRANSFORM_H
#include "mathc.h"
struct mTransform {
mfloat_t position[3];
mfloat_t rotation[4];
float scale;
};
2022-12-22 16:58:06 -06:00
struct mTransform MakeTransform(mfloat_t pos[3], mfloat_t rotation[3], float scale);
2021-11-30 21:29:18 -06:00
2022-12-22 16:58:06 -06:00
mfloat_t *trans_forward(mfloat_t * res, const struct mTransform *const trans);
2021-11-30 21:29:18 -06:00
mfloat_t *trans_back(mfloat_t * res, const struct mTransform *trans);
mfloat_t *trans_up(mfloat_t * res, const struct mTransform *trans);
mfloat_t *trans_down(mfloat_t * res, const struct mTransform *trans);
mfloat_t *trans_right(mfloat_t * res, const struct mTransform *trans);
mfloat_t *trans_left(mfloat_t * res, const struct mTransform *trans);
2022-08-12 14:03:56 -05:00
void trans_drawgui(struct mTransform *T);
2021-11-30 21:29:18 -06:00
//extern Serialize *make_transform();
#endif