Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBBitmap Class Referenceabstract

TBBitmap is a minimal interface for bitmap to be painted by TBRenderer. More...

#include <tb_renderer.h>

Public Member Functions

virtual ~TBBitmap ()
 Note: Implementations for batched renderers should call TBRenderer::FlushBitmap to make sure any active batch is being flushed before the bitmap is deleted. More...
 
virtual int Width ()=0
 
virtual int Height ()=0
 
virtual void SetData (uint32_t *data)=0
 Update the bitmap with the given data (in BGRA32 format). More...
 

Detailed Description

TBBitmap is a minimal interface for bitmap to be painted by TBRenderer.

Constructor & Destructor Documentation

virtual tb::TBBitmap::~TBBitmap ( )
inlinevirtual

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

virtual void tb::TBBitmap::SetData ( uint32_t *  data)
pure virtual

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.


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