![]() |
gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
|
a batch modeler assembles merges provided model data into a single set of data and then uploads it all to a single model typical use-cases of batching includes particles, sprites 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 | |
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 assembles merges provided model data into a single set of data and then uploads it all to a single model typical use-cases of batching includes particles, sprites