Axmol Engine 2.4.0-258ceca
|
Command used to render one or more Quads, similar to TrianglesCommand. More...
#include <QuadCommand.h>
Public Member Functions | |
QuadCommand () | |
Constructor. | |
~QuadCommand () | |
Destructor. | |
void | init (float globalOrder, Texture2D *texture, const BlendFunc &blendType, V3F_C4B_T2F_Quad *quads, ssize_t quadCount, const Mat4 &mv, uint32_t flags) |
Initializes the command. | |
Command used to render one or more Quads, similar to TrianglesCommand.
Every QuadCommand will have generate material ID by give textureID, glProgramState, Blend function if the material id is the same, these QuadCommands could be batched to save draw call.
void init | ( | float | globalOrder, |
Texture2D * | texture, | ||
const BlendFunc & | blendType, | ||
V3F_C4B_T2F_Quad * | quads, | ||
ssize_t | quadCount, | ||
const Mat4 & | mv, | ||
uint32_t | flags ) |
Initializes the command.
globalOrder | GlobalZOrder of the command. |
texture | The texture used in the command. |
blendType | Blend function for the command. |
quads | Rendered quads for the command. |
quadCount | The number of quads when rendering. |
mv | ModelView matrix for the command. |
flags | to indicate that the command is using 3D rendering or not. |