carb::simplegui::DrawCommand

Defined in carb/simplegui/SimpleGuiTypes.h

struct DrawCommand

Defines a drawing command.

Public Members

uint32_t elementCount

The number of indices (multiple of 3) to be rendered as triangles.

The vertices are stored in the callee DrawList::vertexBuffer array, indices in IdxBuffer.

carb::Float4 clipRect

The clipping rectangle (x1, y1, x2, y2).

TextureId textureId

User provided texture ID.

DrawCallback userCallback

If != NULL, call the function instead of rendering the vertices.

void *userCallbackData

The draw callback code can access this.