Urho3D
|
UI rendering draw call. More...
#include <UIBatch.h>
Public Member Functions | |
UIBatch () | |
Construct with defaults. | |
UIBatch (BlendMode blendMode, const IntRect &scissor, Texture *texture, PODVector< UIQuad > *quads) | |
Construct. | |
void | Begin (PODVector< UIQuad > *quads) |
Begin adding quads. | |
void | AddQuad (const UIElement &element, int x, int y, int width, int height, int texOffsetX, int texOffsetY) |
Add a quad. | |
void | AddQuad (const UIElement &element, int x, int y, int width, int height, int texOffsetX, int texOffsetY, int texWidth, int texHeight) |
Add a quad with scaled texture. | |
void | AddQuad (const UIElement &element, int x, int y, int width, int height, int texOffsetX, int texOffsetY, int texWidth, int texHeight, bool tiled) |
Add a quad with tiled texture. | |
void | AddQuad (const UIElement &element, int x, int y, int width, int height, int texOffsetX, int texOffsetY, int texWidth, int texHeight, const Color &color) |
Add a quad with custom color. | |
bool | Merge (const UIBatch &batch) |
Merge with another batch. | |
void | UpdateGeometry (Graphics *graphics, void *lockedData) |
Update the vertex data. |
Static Public Member Functions | |
static void | AddOrMerge (const UIBatch &batch, PODVector< UIBatch > &batches) |
Add or merge a batch. |
Public Attributes | |
BlendMode | blendMode_ |
Blending mode. | |
IntRect | scissor_ |
Scissor rectangle. | |
Texture * | texture_ |
Texture. | |
PODVector< UIQuad > * | quads_ |
Quads. | |
unsigned | quadStart_ |
Quad start index. | |
unsigned | quadCount_ |
Number of quads. |
UI rendering draw call.