A WIP 3D game engine in C++ using OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
447 B

#pragma once
#include <glm/common.hpp>
#include <glm/glm.hpp>
#include <variant>
#include "collision.h"
#include <vector>
enum class entity_type {
STATIC_MESH,
BILLBOARD
};
// entity slug
struct entity {
int id;
entity_type type;
int physics;
int model;
int light;
};
struct physics_model {
glm::vec3 pos;
glm::vec3 velocity;
glm::mat4 orientation;
std::vector<collision::Collider> colliders;
};