|
Nebula
|
#include <tbuibitmap.h>
Inherits tb::TBBitmap.
Public Member Functions | |
| TBUIBitmap (TBUIRenderer *renderer) | |
| ~TBUIBitmap () override | |
| Note: Implementations for batched renderers should call TBRenderer::FlushBitmap to make sure any active batch is being flushed before the bitmap is deleted. | |
| bool | Init (int width, int height, unsigned int *data) |
| int | Width () override |
| int | Height () override |
| void | SetData (unsigned int *data) override |
| Update the bitmap with the given data (in BGRA32 format). | |
| CoreGraphics::TextureId | GetTexture () const |
Private Attributes | |
| TBUIRenderer * | renderer |
| int | width = 0 |
| int | height = 0 |
| CoreGraphics::TextureId | texture |
| TBUI::TBUIBitmap::TBUIBitmap | ( | TBUIRenderer * | renderer | ) |
|
override |
Note: Implementations for batched renderers should call TBRenderer::FlushBitmap to make sure any active batch is being flushed before the bitmap is deleted.
|
inline |
|
override |
| bool TBUI::TBUIBitmap::Init | ( | int | width, |
| int | height, | ||
| unsigned int * | data ) |
|
override |
Update the bitmap with the given data (in BGRA32 format).
Note: Implementations for batched renderers should call TBRenderer::FlushBitmap to make sure any active batch is being flushed before the bitmap is changed.
|
override |
|
private |
|
private |
|
private |
|
private |