#include <render.h>
◆ RenderComponent()
tram::RenderComponent::RenderComponent |
( |
| ) |
|
◆ ~RenderComponent()
tram::RenderComponent::~RenderComponent |
( |
| ) |
|
◆ EventHandler()
void tram::RenderComponent::EventHandler |
( |
Event & |
event | ) |
|
|
inlinevirtual |
◆ GetLightmap()
name_t tram::RenderComponent::GetLightmap |
( |
| ) |
|
|
inline |
◆ GetLocation()
vec3 tram::RenderComponent::GetLocation |
( |
| ) |
const |
|
inline |
◆ GetModel()
◆ GetRotation()
quat tram::RenderComponent::GetRotation |
( |
| ) |
const |
|
inline |
◆ InsertDrawListEntries()
void tram::RenderComponent::InsertDrawListEntries |
( |
| ) |
|
|
protected |
◆ RefreshAABB()
void tram::RenderComponent::RefreshAABB |
( |
| ) |
|
|
protected |
◆ SetArmature()
Links an AnimationComponent.
This needs to be set, so that the model can be rendered with the animations played by the AnimationComponent. Alternatively, this can be set to a nullptr, if no animations are to be played. This affects only dynamic models, static models don't play animations.
◆ SetColor()
void tram::RenderComponent::SetColor |
( |
vec3 |
color | ) |
|
Sets the scale of the model.
◆ SetDirectionaLight()
void tram::RenderComponent::SetDirectionaLight |
( |
bool |
enabled | ) |
|
Sets the world parameters for model rendering.
◆ SetLayer()
void tram::RenderComponent::SetLayer |
( |
uint32_t |
layer | ) |
|
◆ SetLightmap()
void tram::RenderComponent::SetLightmap |
( |
name_t |
name | ) |
|
Sets the lightmap for the model.
Lightmaps are rendered only for static models, so setting a lightmap for a dynamic model will do nothing.
◆ SetLocation()
void tram::RenderComponent::SetLocation |
( |
vec3 |
nlocation | ) |
|
Sets the location of the model.
◆ SetModel()
void tram::RenderComponent::SetModel |
( |
name_t |
name | ) |
|
Set the model that the component will render.
If the model is not already loaded, then it will be added to loader queue and the component will start when it the loading is complete.
◆ SetRotation()
void tram::RenderComponent::SetRotation |
( |
quat |
nrotation | ) |
|
Sets the rotation of the model.
◆ SetScale()
void tram::RenderComponent::SetScale |
( |
vec3 |
scale | ) |
|
Sets the scale of the model.
◆ SetTextureOffset()
void tram::RenderComponent::SetTextureOffset |
( |
name_t |
material, |
|
|
vec4 |
offset |
|
) |
| |
◆ Start()
void tram::RenderComponent::Start |
( |
| ) |
|
|
virtual |
◆ aabb_tree_leaf
void* tram::RenderComponent::aabb_tree_leaf = 0 |
|
protected |
◆ color
vec3 tram::RenderComponent::color = {1.0f, 1.0f, 1.0f} |
|
protected |
◆ draw_list_entries
◆ layer
uint32_t tram::RenderComponent::layer = 0 |
|
protected |
◆ lightmap
◆ location
vec3 tram::RenderComponent::location = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ model
◆ pose
◆ render_flags
uint32_t tram::RenderComponent::render_flags |
|
protected |
◆ rotation
quat tram::RenderComponent::rotation = {1.0f, 0.0f, 0.0f, 0.0f} |
|
protected |
◆ scale
vec3 tram::RenderComponent::scale = {1.0f, 1.0f, 1.0f} |
|
protected |
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/render.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/components/render.cpp