gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
gdk::graphics::entity Class Referenceabstract

represents an observable 3d object. More...

#include <entity.h>

Inheritance diagram for gdk::graphics::entity:

Public Member Functions

virtual void hide ()=0
 do not allow this entity to be drawn
virtual void show ()=0
 allow this entity to be drawn
virtual bool is_hidden () const =0
 check if the entity is hidden
virtual void set_transform (const vector3_type &aWorldPos, const quaternion_type &aRotation, const vector3_type &aScale)=0
 sets the model matrix using a vec3 position, quat rotation, vec3 scale
void set_transform (const vector3_type &aWorldPos, const quaternion_type &aRotation)
 sets the model matrix using a vec3 position and quat rotation, unscaled
virtual void set_transform (const matrix4x4_type &a)=0
 set the model matrix using a matrix
virtual void set_bounds (const vector3_type &aCentre, floating_point_type aRadius)=0
 the bounding sphere of the model, used for culling
virtual ~entity ()=default
 dtor

Detailed Description

represents an observable 3d object.

Member Function Documentation

◆ hide()

virtual void gdk::graphics::entity::hide ( )
pure virtual

do not allow this entity to be drawn

Implemented in gdk::graphics::null_entity.

◆ is_hidden()

virtual bool gdk::graphics::entity::is_hidden ( ) const
pure virtual

check if the entity is hidden

Implemented in gdk::graphics::null_entity.

◆ set_bounds()

virtual void gdk::graphics::entity::set_bounds ( const vector3_type & aCentre,
floating_point_type aRadius )
pure virtual

the bounding sphere of the model, used for culling

Implemented in gdk::graphics::null_entity.

◆ set_transform() [1/2]

virtual void gdk::graphics::entity::set_transform ( const matrix4x4_type & a)
pure virtual

set the model matrix using a matrix

Implemented in gdk::graphics::null_entity.

◆ set_transform() [2/2]

virtual void gdk::graphics::entity::set_transform ( const vector3_type & aWorldPos,
const quaternion_type & aRotation,
const vector3_type & aScale )
pure virtual

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

Implemented in gdk::graphics::null_entity.

◆ show()

virtual void gdk::graphics::entity::show ( )
pure virtual

allow this entity to be drawn

Implemented in gdk::graphics::null_entity.


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