Tramway SDK
Classes | Enumerations | Functions
tram::Render::AABB Namespace Reference

Classes

struct  AABBLeaf
 
struct  QueryResponse
 

Enumerations

enum  ReferenceType : uint32_t { REFERENCE_RENDERCOMPONENT = 1 }
 

Functions

aabbleaf_t InsertLeaf (RenderComponent *component, vec3 position, quat rotation, vec3 scale)
 Inserts a RenderComponent leaf into the scene tree. More...
 
void RemoveLeaf (aabbleaf_t leaf_id)
 Removes a leaf from. More...
 
QueryResponse FindNearestFromRay (vec3 ray_pos, vec3 ray_dir, uint32_t mask)
 Peforms a raycast and retrieves the nearest object. More...
 
void DebugDrawTree ()
 Draws the scene tree for a single frame. More...
 

Enumeration Type Documentation

◆ ReferenceType

Enumerator
REFERENCE_RENDERCOMPONENT 

Function Documentation

◆ DebugDrawTree()

void tram::Render::AABB::DebugDrawTree ( )

Draws the scene tree for a single frame.

◆ FindNearestFromRay()

QueryResponse tram::Render::AABB::FindNearestFromRay ( vec3  ray_pos,
vec3  ray_dir,
uint32_t  mask 
)

Peforms a raycast and retrieves the nearest object.

◆ InsertLeaf()

aabbleaf_t tram::Render::AABB::InsertLeaf ( RenderComponent component,
vec3  position,
quat  rotation,
vec3  scale 
)

Inserts a RenderComponent leaf into the scene tree.

Returns
Handle to the inserted leaf.

◆ RemoveLeaf()

void tram::Render::AABB::RemoveLeaf ( aabbleaf_t  leaf_id)

Removes a leaf from.