4#ifndef TRAM_SDK_COMPONENTS_RENDERCOMPONENT_H
5#define TRAM_SDK_COMPONENTS_RENDERCOMPONENT_H
11class AnimationComponent;
Definition: animation.h:13
Definition: entitycomponent.h:18
void EventHandler(Event &event)
Definition: render.h:39
vec3 color
Definition: render.h:54
void SetLightmap(name_t name)
Sets the lightmap for the model.
Definition: render.cpp:41
ResourceProxy< Render::Model > model
Definition: render.h:44
vec3 location
Definition: render.h:51
uint32_t render_flags
Definition: render.h:59
void RefreshAABB()
Definition: render.cpp:217
std::vector< Render::drawlistentry_t > draw_list_entries
Definition: render.h:47
name_t GetLightmap()
Definition: render.h:19
void SetDirectionaLight(bool enabled)
Sets the world parameters for model rendering.
Definition: render.cpp:93
Render::Model * GetModel()
Definition: render.h:17
ResourceProxy< Render::Material > lightmap
Definition: render.h:45
void SetLocation(vec3 nlocation)
Sets the location of the model.
Definition: render.cpp:110
~RenderComponent()
Definition: render.cpp:78
void Start()
Definition: render.cpp:208
uint32_t layer
Definition: render.h:55
RenderComponent()
Definition: render.cpp:74
void InsertDrawListEntries()
Definition: render.cpp:225
void SetModel(name_t name)
Set the model that the component will render.
Definition: render.cpp:21
quat rotation
Definition: render.h:52
void SetArmature(AnimationComponent *armature)
Links an AnimationComponent.
Definition: render.cpp:58
quat GetRotation() const
Definition: render.h:28
vec3 GetLocation() const
Definition: render.h:27
void SetRotation(quat nrotation)
Sets the rotation of the model.
Definition: render.cpp:128
void SetTextureOffset(name_t material, vec4 offset)
Definition: render.cpp:169
void SetScale(vec3 scale)
Sets the scale of the model.
Definition: render.cpp:143
void SetLayer(uint32_t layer)
Definition: render.cpp:157
void * aabb_tree_leaf
Definition: render.h:57
vec3 scale
Definition: render.h:53
void SetColor(vec3 color)
Sets the scale of the model.
Definition: render.cpp:190
Render::Pose * pose
Definition: render.h:49
Definition: resource.h:47
glm::vec4 vec4
Definition: math.h:16
glm::vec3 vec3
Definition: math.h:12
glm::quat quat
Definition: math.h:13
Definition: animation.h:36