![]() |
gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
|
render scene. More...
#include <webgl1es2_scene.h>
Public Types | |
using | material_ptr_type = std::shared_ptr<webgl1es2_material> |
materials can be shared across webgl1es2_scenes | |
using | model_ptr_type = std::shared_ptr<webgl1es2_model> |
models can be shared across webgl1es2_scenes | |
using | model_to_entity_collection |
using | material_to_model_to_entity_collection_collection |
Public Member Functions | |
external interface | |
virtual void | add (const std::shared_ptr< const screen_camera > &pCamera) override |
add a screen camera to the scene | |
virtual void | add (const std::shared_ptr< const texture_camera > &pCamera) override |
add a texture camera to the scene | |
virtual void | add (const std::shared_ptr< const entity > &pEntity) override |
add an entity to the scene | |
virtual void | remove (const std::shared_ptr< const screen_camera > &pCamera) override |
remove a screen camera from the scene | |
virtual void | remove (const std::shared_ptr< const texture_camera > &pCamera) override |
remove a texture camera from the scene | |
virtual void | remove (const std::shared_ptr< const entity > &pEntity) override |
remove an entity from the scene | |
virtual void | draw (const gdk::graphics_intvector2_type &aFrameBufferSize) const override |
draws the scene | |
render scene.
associative collection: Materials to {Models to collections of Entities} - Used to optimize GL calls
associative collection: Models to collections of Entities - Used to optimize GL calls
|
overridevirtual |
add an entity to the scene
Implements gdk::scene.
|
overridevirtual |
add a screen camera to the scene
Implements gdk::scene.
|
overridevirtual |
add a texture camera to the scene
Implements gdk::scene.
|
overridevirtual |
draws the scene
Implements gdk::scene.
|
overridevirtual |
remove an entity from the scene
Implements gdk::scene.
|
overridevirtual |
remove a screen camera from the scene
Implements gdk::scene.
|
overridevirtual |
remove a texture camera from the scene
Implements gdk::scene.