![]() |
rag
graphic 2d engine
|
Object where DisplayObject instances with render capability are suposed to render. More...
#include <RenderTarget.h>
Public Member Functions | |
RenderTarget () | |
Create a RenderTarget object. | |
virtual | ~RenderTarget () |
Default destructor. | |
void | draw (const VertexArray &vertexArray, const Material &material) |
Enqueues draw command. | |
void | flush () |
Renders enqueued render commands. | |
Object where DisplayObject instances with render capability are suposed to render.
A RenderTarget is passed trough the Display List and provides functionality to enqueue render commands. RenderTarget will group commands that use similar Material in order to reduce the number of draw calls.