prosperon/source/engine/transform.h

26 lines
646 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#ifndef TRANSFORM_H
#define TRANSFORM_H
2023-05-24 20:45:50 -05:00
#include "HandmadeMath.h"
2021-11-30 21:29:18 -06:00
struct mTransform {
2023-05-24 20:45:50 -05:00
HMM_Vec3 pos;
HMM_Quat rotation;
2021-11-30 21:29:18 -06:00
float scale;
};
2023-05-24 20:45:50 -05:00
struct mTransform MakeTransform(HMM_Vec3 pos, HMM_Quat rotation, float scale);
2021-11-30 21:29:18 -06:00
2023-05-24 20:45:50 -05:00
HMM_Vec3 trans_forward(const struct mTransform *const trans);
HMM_Vec3 trans_back(const struct mTransform *trans);
HMM_Vec3 trans_up(const struct mTransform *trans);
HMM_Vec3 trans_down(const struct mTransform *trans);
HMM_Vec3 trans_right(const struct mTransform *trans);
HMM_Vec3 trans_left(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