Nebula
Loading...
Searching...
No Matches
TBUI::TBUIBitmap Class Reference

#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

TBUIRendererrenderer
 
int width = 0
 
int height = 0
 
CoreGraphics::TextureId texture
 

Constructor & Destructor Documentation

◆ TBUIBitmap()

TBUI::TBUIBitmap::TBUIBitmap ( TBUIRenderer * renderer)

◆ ~TBUIBitmap()

TBUI::TBUIBitmap::~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.

Member Function Documentation

◆ GetTexture()

CoreGraphics::TextureId TBUI::TBUIBitmap::GetTexture ( ) const
inline

◆ Height()

int TBUI::TBUIBitmap::Height ( )
override

◆ Init()

bool TBUI::TBUIBitmap::Init ( int width,
int height,
unsigned int * data )

◆ SetData()

void TBUI::TBUIBitmap::SetData ( 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.

◆ Width()

int TBUI::TBUIBitmap::Width ( )
override

Member Data Documentation

◆ height

int TBUI::TBUIBitmap::height = 0
private

◆ renderer

TBUIRenderer* TBUI::TBUIBitmap::renderer
private

◆ texture

CoreGraphics::TextureId TBUI::TBUIBitmap::texture
private

◆ width

int TBUI::TBUIBitmap::width = 0
private

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