The Batch class represents a batch of game objects to be rendered together.
More...
#include <Batch.h>
|
| Batch () |
| Default constructor for the Batch class.
|
|
bool | Render (GameObject *go, float *stride) |
| Renders a game object using the batch.
|
|
void | BindTextures () |
| Binds the textures associated with the batch.
|
|
void | Draw () |
| Draws the batch.
|
|
void | Delete () |
| Deletes the batch.
|
|
|
std::string | shader = "" |
|
int | layer = 0 |
|
bool | isDynamic = 1 |
|
std::unordered_map< GameObject *, int > | objs |
|
std::vector< float > | vertices |
|
std::unordered_map< Texture *, int > | textures |
|
The Batch class represents a batch of game objects to be rendered together.
◆ DefaultBatchDrawCallback()
int Batch::DefaultBatchDrawCallback |
( |
void * | data | ) |
|
|
static |
Default batch draw callback function.
- Parameters
-
data | The data for the draw callback. |
- Returns
- The result of the draw callback.
◆ Render()
Renders a game object using the batch.
- Parameters
-
go | The game object to render. |
stride | The stride of the vertex data. |
- Returns
- True if the rendering is successful, false otherwise.
The documentation for this class was generated from the following files:
- Graphics/Batch.h
- Graphics/Batch.cpp