rag
graphic 2d engine
Public Member Functions | List of all members
rag::RenderTarget Class Reference

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.
 

Detailed Description

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.


The documentation for this class was generated from the following files: