Urho3D
Public Member Functions | Static Public Member Functions | Public Attributes
Urho3D::UIBatch Class Reference

UI rendering draw call. More...

#include <UIBatch.h>

List of all members.

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.
Texturetexture_
 Texture.
PODVector< UIQuad > * quads_
 Quads.
unsigned quadStart_
 Quad start index.
unsigned quadCount_
 Number of quads.

Detailed Description

UI rendering draw call.


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