nCine::RenderQueue class

Sorts and issues the render commands collected during a scene graph visit.

Drawable nodes append their commands during the visit phase. SortAndCommit() then separates opaque from transparent commands, sorts each group, builds batches and uploads their data, and Draw() finally issues them to OpenGL in the proper order.

Constructors, destructors, conversion operators

RenderQueue()

Public functions

auto IsEmpty() const -> bool
Returns true if the queue does not contain any render commands.
void AddCommand(RenderCommand* command)
Adds a draw command to the queue.
void SortAndCommit()
Sorts the queues, builds batches and commits the commands.
void Draw()
Issues every render command in order.
void Clear()
Clears all the queues and resets the render batcher.