#include <model.h>
◆ Model()
| tram::Render::Model::Model |
( |
name_t |
name | ) |
|
|
inline |
◆ DrawAABB()
| void tram::Render::Model::DrawAABB |
( |
vec3 |
position, |
|
|
quat |
rotation |
|
) |
| |
Draws the AABB tree.
Draws the AABB tree of the 3D model using debug lines. This might be useful for debugging if raycasts or some other lookups fail on the 3D model.
- Parameters
-
| position | Position of the 3D model in the scene. |
| rotation | Rotation of the 3D model in the scene. |
◆ Find()
◆ FindAllFromAABB()
| void tram::Render::Model::FindAllFromAABB |
( |
vec3 |
min, |
|
|
vec3 |
max, |
|
|
std::vector< AABBTriangle > & |
result |
|
) |
| |
◆ FindAllFromRay()
| void tram::Render::Model::FindAllFromRay |
( |
vec3 |
ray_pos, |
|
|
vec3 |
ray_dir, |
|
|
std::vector< AABBTriangle > & |
result |
|
) |
| |
Finds triangles that intersect ray.
Finds the triangles that intersect the given ray. The ray's origin and direction must be provided in the local model coordinates.
◆ GetAABBMax()
| vec3 tram::Render::Model::GetAABBMax |
( |
| ) |
const |
|
inline |
◆ GetAABBMin()
| vec3 tram::Render::Model::GetAABBMin |
( |
| ) |
const |
|
inline |
◆ GetArmature()
| const std::vector< Bone > & tram::Render::Model::GetArmature |
( |
| ) |
const |
|
inline |
◆ GetFarDistance()
| float tram::Render::Model::GetFarDistance |
( |
| ) |
const |
|
inline |
◆ GetIndexArray()
◆ GetIndexRanges()
| const std::vector< IndexRange > & tram::Render::Model::GetIndexRanges |
( |
| ) |
const |
|
inline |
◆ GetMaterials()
| const std::vector< Material * > & tram::Render::Model::GetMaterials |
( |
| ) |
const |
|
inline |
◆ GetNearDistance()
| float tram::Render::Model::GetNearDistance |
( |
| ) |
const |
|
inline |
◆ GetOrigin()
| vec3 tram::Render::Model::GetOrigin |
( |
| ) |
const |
|
inline |
◆ GetVertexArray()
◆ GetVertexFormat()
◆ LoadFromDisk()
| void tram::Render::Model::LoadFromDisk |
( |
| ) |
|
|
virtual |
◆ LoadFromMemory()
| void tram::Render::Model::LoadFromMemory |
( |
| ) |
|
|
virtual |
◆ SetFarDistance()
| void tram::Render::Model::SetFarDistance |
( |
float |
dist | ) |
|
|
inline |
◆ SetNearDistance()
| void tram::Render::Model::SetNearDistance |
( |
float |
dist | ) |
|
|
inline |
◆ Unload()
| void tram::Render::Model::Unload |
( |
| ) |
|
|
inlinevirtual |
◆ aabb_max
| vec3 tram::Render::Model::aabb_max = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ aabb_min
| vec3 tram::Render::Model::aabb_min = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ approx_vram_usage
| size_t tram::Render::Model::approx_vram_usage = 0 |
|
protected |
◆ armature
| std::vector<Bone> tram::Render::Model::armature |
|
protected |
◆ fade_far
| float tram::Render::Model::fade_far = INFINITY |
|
protected |
◆ fade_near
| float tram::Render::Model::fade_near = 0.0f |
|
protected |
◆ index_array
◆ index_ranges
| std::vector<IndexRange> tram::Render::Model::index_ranges |
|
protected |
◆ materials
| std::vector<Material*> tram::Render::Model::materials |
|
protected |
◆ model_aabb
| ModelAABB* tram::Render::Model::model_aabb = nullptr |
|
protected |
◆ model_data
| ModelData* tram::Render::Model::model_data = nullptr |
|
protected |
◆ origin
| vec3 tram::Render::Model::origin = {0.0f, 0.0f, 0.0f} |
|
protected |
◆ source
| Model* tram::Render::Model::source = nullptr |
|
protected |
◆ vertex_array
◆ vertex_format
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/render/model.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/render/model.cpp