#include <Batch.h>
Public Member Functions | |
| void | process (Batch &batch) |
| Adds commands for drawInstanced call for this set of instanced objects. More... | |
Public Attributes | |
| BufferPointers | buffers |
| Function | function |
| DrawCallInfoBuffer | drawCallInfos |
Used for instancing, currently for basic shapes with simple single color shading.
|
inline |
Adds commands for drawInstanced call for this set of instanced objects.
| batch | Batch to which commands will be added to. |
| BufferPointers gpu::Batch::NamedBatchData::buffers |
Contains buffers needed for a given instanced draw call. Currently, it can contain color data on INSTANCE_COLOR_BUFFER index, and fade data on INSTANCE_FADE1_BUFFER...INSTANCE_FADE7_BUFFER. These also have per-instance stride.
| DrawCallInfoBuffer gpu::Batch::NamedBatchData::drawCallInfos |
The whole named batch is drawn as a single drawInstanced call. drawCallInfos buffer is bound with per instance stride, providing indexes of transformations for each drawn object.
| Function gpu::Batch::NamedBatchData::function |
Function that adds batch commands necessary to draw instanced objects from this NamedBatchData. It's called after all the objects are collected.