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

represents an observable 3d object. More...

#include <entity.h>

Inheritance diagram for gdk::entity:
gdk::webgl1es2_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 graphics_vector3_type &aWorldPos, const graphics_quaternion_type &aRotation, const graphics_vector3_type &aScale=graphics_vector3_type::one)=0
 sets the model matrix using a vec3 position, quat rotation, vec3 scale
 
virtual void set_transform (const graphics_matrix4x4_type &a)=0
 set the model matrix using a matrix
 
virtual ~entity ()=default
 dtor
 

Detailed Description

represents an observable 3d object.

Member Function Documentation

◆ hide()

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

do not allow this entity to be drawn

Implemented in gdk::webgl1es2_entity.

◆ is_hidden()

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

check if the entity is hidden

Implemented in gdk::webgl1es2_entity.

◆ set_transform() [1/2]

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

set the model matrix using a matrix

Implemented in gdk::webgl1es2_entity.

◆ set_transform() [2/2]

virtual void gdk::entity::set_transform ( const graphics_vector3_type & aWorldPos,
const graphics_quaternion_type & aRotation,
const graphics_vector3_type & aScale = graphics_vector3_type::one )
pure virtual

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

Implemented in gdk::webgl1es2_entity.

◆ show()

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

allow this entity to be drawn

Implemented in gdk::webgl1es2_entity.


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