Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBBitmapFragment represents a sub part of a TBBitmap. More...
#include <tb_bitmap_fragment.h>
Public Member Functions | |
int | Width () const |
Return the width of the bitmap fragment. More... | |
int | Height () const |
Return the height of the bitmap fragment. More... | |
TBBitmap * | GetBitmap (TB_VALIDATE_TYPE validate_type=TB_VALIDATE_ALWAYS) |
Return the bitmap for this fragment. More... | |
int | GetAllocatedHeight () const |
Return the height allocated to this fragment. More... | |
Public Attributes | |
TBBitmapFragmentMap * | m_map |
TBRect | m_rect |
TBFragmentSpaceAllocator * | m_row |
TBFragmentSpaceAllocator::Space * | m_space |
TBID | m_id |
int | m_row_height |
uint32_t | m_batch_id |
This uint32_t is reserved for batching renderer backends. More... | |
TBBitmapFragment represents a sub part of a TBBitmap.
It's owned by TBBitmapFragmentManager which pack multiple TBBitmapFragment within TBBitmaps to reduce texture switching.
|
inline |
Return the height allocated to this fragment.
This may be larger than Height() depending of the internal allocation of fragments in a map. It should rarely be used.
|
inline |
Return the bitmap for this fragment.
By default, the bitmap is validated if needed before returning (See TB_VALIDATE_TYPE)
|
inline |
Return the height of the bitmap fragment.
|
inline |
Return the width of the bitmap fragment.
uint32_t tb::TBBitmapFragment::m_batch_id |
This uint32_t is reserved for batching renderer backends.
It's not used internally, but always initialized to 0xffffffff for all new fragments.