3#ifndef GDK_BATCH_MODELER_H
4#define GDK_BATCH_MODELER_H
6#include <gdk/graphics_context.h>
7#include <gdk/graphics_types.h>
8#include <gdk/model_data.h>
13 class batch_modeler final {
16 const_model_ptr_type
model()
const;
30 batch_modeler(context_ptr_type aGraphics, material_ptr_type aMaterial);
33 material_ptr_type m_pMaterial;
35 model_ptr_type m_pModel;
void upload()
upload the batch data to the model and clear the batch
const_model_ptr_type model() const
get the model, contains the uploaded model data for the batch
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
const_material_ptr_type material() const
get the material, used to render the model
vertex data stored in system memory.
Definition model_data.h:22