gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
gdk::graphics::null_entity Class Referencefinal
Inheritance diagram for gdk::graphics::null_entity:
Collaboration diagram for gdk::graphics::null_entity:

Public Member Functions

 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
Public Member Functions inherited from gdk::graphics::entity
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

Member Function Documentation

◆ hide()

virtual void gdk::graphics::null_entity::hide ( )
overridevirtual

do not allow this entity to be drawn

Implements gdk::graphics::entity.

◆ is_hidden()

virtual bool gdk::graphics::null_entity::is_hidden ( ) const
nodiscardoverridevirtual

check if the entity is hidden

Implements gdk::graphics::entity.

◆ set_bounds()

virtual void gdk::graphics::null_entity::set_bounds ( const vector3_type & aCentre,
floating_point_type aRadius )
overridevirtual

the bounding sphere of the model, used for culling

Implements gdk::graphics::entity.

◆ set_transform() [1/2]

virtual void gdk::graphics::null_entity::set_transform ( const matrix4x4_type & a)
overridevirtual

set the model matrix using a matrix

Implements gdk::graphics::entity.

◆ 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

sets the model matrix using a vec3 position, quat rotation, vec3 scale

Implements gdk::graphics::entity.

◆ show()

virtual void gdk::graphics::null_entity::show ( )
overridevirtual

allow this entity to be drawn

Implements gdk::graphics::entity.


The documentation for this class was generated from the following file: