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

a 3d environment within which cameras draw entities More...

#include <scene.h>

Inheritance diagram for gdk::scene:
gdk::webgl1es2_scene

Public Member Functions

virtual void add (const std::shared_ptr< const screen_camera > &pCamera)=0
 add a screen camera to the scene
 
virtual void remove (const std::shared_ptr< const screen_camera > &pCamera)=0
 remove a screen camera from the scene
 
virtual void add (const std::shared_ptr< const texture_camera > &pCamera)=0
 add a texture camera to the scene
 
virtual void remove (const std::shared_ptr< const texture_camera > &pCamera)=0
 remove a texture camera from the scene
 
virtual void add (const std::shared_ptr< const entity > &pEntity)=0
 add an entity to the scene
 
virtual void remove (const std::shared_ptr< const entity > &pEntity)=0
 remove an entity from the scene
 
virtual void draw (const gdk::graphics_intvector2_type &aFrameBufferSize) const =0
 draws the scene
 

Detailed Description

a 3d environment within which cameras draw entities

Member Function Documentation

◆ add() [1/3]

virtual void gdk::scene::add ( const std::shared_ptr< const entity > & pEntity)
pure virtual

add an entity to the scene

Implemented in gdk::webgl1es2_scene.

◆ add() [2/3]

virtual void gdk::scene::add ( const std::shared_ptr< const screen_camera > & pCamera)
pure virtual

add a screen camera to the scene

Implemented in gdk::webgl1es2_scene.

◆ add() [3/3]

virtual void gdk::scene::add ( const std::shared_ptr< const texture_camera > & pCamera)
pure virtual

add a texture camera to the scene

Implemented in gdk::webgl1es2_scene.

◆ draw()

virtual void gdk::scene::draw ( const gdk::graphics_intvector2_type & aFrameBufferSize) const
pure virtual

draws the scene

Implemented in gdk::webgl1es2_scene.

◆ remove() [1/3]

virtual void gdk::scene::remove ( const std::shared_ptr< const entity > & pEntity)
pure virtual

remove an entity from the scene

Implemented in gdk::webgl1es2_scene.

◆ remove() [2/3]

virtual void gdk::scene::remove ( const std::shared_ptr< const screen_camera > & pCamera)
pure virtual

remove a screen camera from the scene

Implemented in gdk::webgl1es2_scene.

◆ remove() [3/3]

virtual void gdk::scene::remove ( const std::shared_ptr< const texture_camera > & pCamera)
pure virtual

remove a texture camera from the scene

Implemented in gdk::webgl1es2_scene.


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