|
gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
|
a batch modeler merges multiple sets of model_data into one then uploads it all to a single model typical use-cases of batching includes particles, sprites, text renderers More...
#include <batch_modeler.h>
Public Member Functions | |
| const_model_ptr_type | model () const |
| get the model, contains the uploaded model data for the batch | |
| const_material_ptr_type | material () const |
| get the material, used to render the model | |
| std::size_t | vertex_count () const |
| get the number of vertices in the current buffer | |
| void | push_back (const model_data &data) |
| add model data to the batch | |
| void | upload () |
| upload the batch data to the model and clear the batch | |
| batch_modeler (context_ptr_type aGraphics, material_ptr_type aMaterial) | |
a batch modeler merges multiple sets of model_data into one then uploads it all to a single model typical use-cases of batching includes particles, sprites, text renderers