couch/core/Transform.h

23 lines
466 B
C
Raw Normal View History

2021-01-12 14:09:38 -06:00
#ifndef TRANSFORM_H
#define TRANSFORM_H
2021-01-15 17:51:19 -06:00
#include <glm/gtc/matrix_transform.hpp>
2021-01-12 14:09:38 -06:00
#include "types.h"
struct Transform {
2021-01-13 10:42:57 -06:00
Transform();
2021-01-13 20:08:39 -06:00
Transform(Vector3 position, Vector3 rotation);
2021-01-20 17:18:39 -06:00
Transform(Vector3 position, Vector3 rotation, Vector3 scale);
2021-01-13 10:42:57 -06:00
Vector3 position;
2021-01-13 20:08:39 -06:00
Vector3 rotation;
2021-01-20 17:18:39 -06:00
Vector3 scale;
2021-01-13 16:47:16 -06:00
void Translate(cfloat x, cfloat y, cfloat z);
2021-01-15 17:51:19 -06:00
Vector3 Forward();
2021-01-21 11:12:45 -06:00
Vector3 Right();
Vector3 Up();
Matrix RotationMatrix();
2021-01-13 10:42:57 -06:00
};
2021-01-12 14:09:38 -06:00
#endif /* TRANSFORM_H */