3#ifndef TRAM_SDK_RENDER_MODEL_H
4#define TRAM_SDK_RENDER_MODEL_H
static Model * Find(name_t name)
Definition: model.cpp:58
vec3 aabb_max
Definition: model.h:70
void LoadFromDisk()
Definition: model.cpp:287
void DrawAABB(vec3 position, quat rotation)
Draws the AABB tree.
Definition: model.cpp:205
vec3 GetAABBMin() const
Definition: model.h:49
void FindAllFromRay(vec3 ray_pos, vec3 ray_dir, std::vector< AABBTriangle > &result)
Finds triangles that intersect ray.
Definition: model.cpp:143
vec3 GetOrigin() const
Definition: model.h:52
indexarray_t GetIndexArray() const
Definition: model.h:39
void LoadFromMemory()
Definition: model.cpp:69
ModelAABB * model_aabb
Definition: model.h:83
void SetNearDistance(float dist)
Definition: model.h:56
float GetFarDistance() const
Definition: model.h:55
size_t approx_vram_usage
Definition: model.h:84
void FindAllFromAABB(vec3 min, vec3 max, std::vector< AABBTriangle > &result)
Definition: model.cpp:154
std::vector< IndexRange > index_ranges
Definition: model.h:67
const std::vector< IndexRange > & GetIndexRanges() const
Definition: model.h:43
vec3 aabb_min
Definition: model.h:69
ModelData * model_data
Definition: model.h:82
std::vector< Bone > armature
Definition: model.h:81
void Unload()
Definition: model.h:34
const std::vector< Bone > & GetArmature() const
Definition: model.h:41
vertexformat_t GetVertexFormat() const
Definition: model.h:36
Model(name_t name)
Definition: model.h:29
indexarray_t index_array
Definition: model.h:65
float fade_near
Definition: model.h:72
float GetNearDistance() const
Definition: model.h:54
float fade_far
Definition: model.h:73
vertexarray_t vertex_array
Definition: model.h:64
vec3 GetAABBMax() const
Definition: model.h:50
vertexarray_t GetVertexArray() const
Definition: model.h:38
Model * source
Definition: model.h:79
void SetFarDistance(float dist)
Definition: model.h:57
std::vector< Material * > materials
Definition: model.h:77
const std::vector< Material * > & GetMaterials() const
Definition: model.h:42
vertexformat_t vertex_format
Definition: model.h:62
vec3 origin
Definition: model.h:75
Definition: resource.h:11
name_t name
Definition: resource.h:37
High-level Render system API.
Definition: gui.h:8
uint32_t vertexformat_t
Definition: render.h:19
@ VERTEX_STATIC
Definition: render.h:68
uint32_t materialtype_t
Definition: render.h:20
glm::vec3 vec3
Definition: math.h:11
glm::quat quat
Definition: math.h:12
vec3 normal
Definition: model.h:15
uint32_t material
Definition: model.h:16
vec3 point1
Definition: model.h:14
vec3 point2
Definition: model.h:14
vec3 point3
Definition: model.h:14
materialtype_t material_type
Definition: model.h:23
uint32_t material_count
Definition: model.h:22
uint32_t index_length
Definition: model.h:21
uint32_t materials[15]
Definition: model.h:24
uint32_t index_offset
Definition: model.h:20
Definition: model.cpp:134
Definition: vertices.h:58
Interned string type.
Definition: uid.h:10