|
Symbian platform (C++)
SDK native APIs, runtime and tooling
|
Batches ordered solid-color UI rectangles into GLES2 draw calls. More...
#include <cpp/symbian/api/include/symbian/api/display/gles_rect_batch.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| GlesRectBatch (const GlesRectBatch &)=delete | |
| GlesRectBatch & | operator= (const GlesRectBatch &)=delete |
| GlesRectBatch (GlesRectBatch &&other) noexcept | |
| GlesRectBatch & | operator= (GlesRectBatch &&other) noexcept |
| ~GlesRectBatch () | |
| void | Begin (int width, int height) |
| void | AddRect (int x, int y, int width, int height, float red, float green, float blue, float alpha=1.0f) |
| void | Draw () |
| void | Close () |
Static Public Member Functions | |
| static absl::StatusOr< GlesRectBatch > | Create () |
| static absl::StatusOr< std::unique_ptr< GlesRectBatch > > | CreateUnique () |
Batches ordered solid-color UI rectangles into GLES2 draw calls.
Create and Draw require a current GLES2 context on the calling thread. The owner allocates a bounded vertex buffer once; AddRect does not allocate. Flush occurs automatically when the fixed buffer fills. Coordinates are screen pixels with the origin at the top left.
|
delete |
|
noexcept |
| symbian::api::display::GlesRectBatch::~GlesRectBatch | ( | ) |
| void symbian::api::display::GlesRectBatch::AddRect | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height, | ||
| float | red, | ||
| float | green, | ||
| float | blue, | ||
| float | alpha = 1.0f |
||
| ) |
| void symbian::api::display::GlesRectBatch::Begin | ( | int | width, |
| int | height | ||
| ) |
| void symbian::api::display::GlesRectBatch::Close | ( | ) |
|
static |
|
static |
| void symbian::api::display::GlesRectBatch::Draw | ( | ) |
|
delete |
|
noexcept |