35 lines
767 B
C++
35 lines
767 B
C++
#pragma once
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
#include <glm/gtc/type_ptr.hpp>
|
|
#include <glm/gtx/quaternion.hpp>
|
|
#include <memory>
|
|
#include <entt/entt.hpp>
|
|
|
|
namespace TSR {
|
|
|
|
struct TransformComponent {
|
|
glm::vec3 pos[2];
|
|
glm::quat rot[2];
|
|
};
|
|
|
|
class Game {
|
|
static entt::registry s_registry;
|
|
static uint64_t s_sv_frame;
|
|
static float s_frame_t;
|
|
static int s_tps;
|
|
|
|
public:
|
|
static void SvFrame();
|
|
static void ClFrame(float frame_t);
|
|
|
|
static entt::registry& Registry() { return s_registry; }
|
|
static uint64_t FrameNum() { return s_sv_frame; }
|
|
static float FrameT() { return s_frame_t; }
|
|
static int TPS() { return s_tps; }
|
|
};
|
|
|
|
}
|
|
|
|
|