Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
symbian::api::display::GlesRectBatch Class Referencefinal

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GlesRectBatch() [1/2]

symbian::api::display::GlesRectBatch::GlesRectBatch ( const GlesRectBatch &  )
delete

◆ GlesRectBatch() [2/2]

symbian::api::display::GlesRectBatch::GlesRectBatch ( GlesRectBatch &&  other)
noexcept

◆ ~GlesRectBatch()

symbian::api::display::GlesRectBatch::~GlesRectBatch ( )

Member Function Documentation

◆ AddRect()

void symbian::api::display::GlesRectBatch::AddRect ( int  x,
int  y,
int  width,
int  height,
float  red,
float  green,
float  blue,
float  alpha = 1.0f 
)

◆ Begin()

void symbian::api::display::GlesRectBatch::Begin ( int  width,
int  height 
)

◆ Close()

void symbian::api::display::GlesRectBatch::Close ( )

◆ Create()

absl::StatusOr< GlesRectBatch > symbian::api::display::GlesRectBatch::Create ( )
static

◆ CreateUnique()

absl::StatusOr< std::unique_ptr< GlesRectBatch > > symbian::api::display::GlesRectBatch::CreateUnique ( )
static

◆ Draw()

void symbian::api::display::GlesRectBatch::Draw ( )

◆ operator=() [1/2]

GlesRectBatch & symbian::api::display::GlesRectBatch::operator= ( const GlesRectBatch &  )
delete

◆ operator=() [2/2]

GlesRectBatch & symbian::api::display::GlesRectBatch::operator= ( GlesRectBatch &&  other)
noexcept

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