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.
31 lines
578 B
31 lines
578 B
|
|
#pragma once |
|
|
|
#include <glm/glm.hpp> |
|
|
|
#include "asset.h" |
|
#include "render_object.h" |
|
#include "types.h" |
|
|
|
|
|
struct entity |
|
{ |
|
glm::mat4 world_transform; |
|
//mesh_group meshes; |
|
uint64_t model_id; // NOTE: filepath hash |
|
render_objects* render_objs; |
|
}; |
|
|
|
bool entInitModel(entity* e, model* mdl); |
|
|
|
// FIXME: might as well stay consistent and make all these pointers |
|
void entFree(entity* e); |
|
|
|
void entSetWorldPosition(entity& e, glm::vec3 v); |
|
|
|
void entTranslate(entity& e, glm::vec3 v); |
|
|
|
void entScale(entity& e, glm::vec3 v); |
|
|
|
void entRotate(entity* e, float angle, glm::vec3 axis); |
|
|
|
|