|
|
| null_entity (const_model_ptr_type pModel, const_material_ptr_type pMaterial) |
| virtual void | hide () override |
| | do not allow this entity to be drawn
|
| virtual void | show () override |
| | allow this entity to be drawn
|
| virtual bool | is_hidden () const override |
| | check if the entity is hidden
|
| virtual void | set_transform (const vector3_type &aWorldPos, const quaternion_type &aRotation, const vector3_type &aScale) override |
| | sets the model matrix using a vec3 position, quat rotation, vec3 scale
|
| virtual void | set_transform (const matrix4x4_type &aTransform) override |
| | set the model matrix using a matrix
|
| virtual void | set_bounds (const vector3_type &aCentre, floating_point_type aRadius) override |
| | the bounding sphere of the model, used for culling
|
|
const matrix4x4_type & | transform () const |
|
const std::optional< std::pair< vector3_type, floating_point_type > > & | bounds () const |
|
const_model_ptr_type | model () const |
|
const_material_ptr_type | material () const |
|
void | set_transform (const vector3_type &aWorldPos, const quaternion_type &aRotation) |
| | sets the model matrix using a vec3 position and quat rotation, unscaled
|
|
void | set_transform (const vector3_type &aWorldPos, const quaternion_type &aRotation) |
| | sets the model matrix using a vec3 position and quat rotation, unscaled
|
|
virtual | ~entity ()=default |
| | dtor
|
◆ hide()
| virtual void gdk::graphics::null_entity::hide |
( |
| ) |
|
|
overridevirtual |
◆ is_hidden()
| virtual bool gdk::graphics::null_entity::is_hidden |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ set_bounds()
| virtual void gdk::graphics::null_entity::set_bounds |
( |
const vector3_type & | aCentre, |
|
|
floating_point_type | aRadius ) |
|
overridevirtual |
◆ set_transform() [1/2]
| virtual void gdk::graphics::null_entity::set_transform |
( |
const matrix4x4_type & | a | ) |
|
|
overridevirtual |
◆ set_transform() [2/2]
| virtual void gdk::graphics::null_entity::set_transform |
( |
const vector3_type & | aWorldPos, |
|
|
const quaternion_type & | aRotation, |
|
|
const vector3_type & | aScale ) |
|
overridevirtual |
◆ show()
| virtual void gdk::graphics::null_entity::show |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file:
- /home/runner/work/gdk-graphics/gdk-graphics/impl/null/include/gdk/graphics/null_context.h