Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::Shape8Bit_t Struct Reference

Public Member Functions

uint_t GetWidth (void) const
 
uint_t GetHeight (void) const
 
const uint8_t * GetPixels (void) const
 
void Draw (Renderer *pRenderer, int iX, int iY) const
 
void DrawMasked (Renderer *pRenderer, int iX, int iY) const
 

Static Public Member Functions

static Shape8Bit_tLoad (RezFile *pRezFile, uint_t uRezNum)
 
static void Preload (RezFile *pRezFile, uint_t uRezNum)
 

Public Attributes

uint16_t m_usWidth
 Width of the shape.
 
uint16_t m_usHeight
 Height of the shape.
 
uint8_t m_Data [1]
 Raw shape data.
 

Member Function Documentation

◆ Draw()

void Burger::Shape8Bit_t::Draw ( Renderer * pRenderer,
int iX,
int iY ) const
inline

◆ DrawMasked()

void Burger::Shape8Bit_t::DrawMasked ( Renderer * pRenderer,
int iX,
int iY ) const
inline

◆ GetHeight()

uint_t Burger::Shape8Bit_t::GetHeight ( void ) const
inline

◆ GetPixels()

const uint8_t * Burger::Shape8Bit_t::GetPixels ( void ) const
inline

◆ GetWidth()

uint_t Burger::Shape8Bit_t::GetWidth ( void ) const
inline

◆ Load()

Burger::Shape8Bit_t *BURGER_API Burger::Shape8Bit_t::Load ( Burger::RezFile * pRezFile,
uint_t uRezNum )
static

Load a Burgerlib shape assuming it's little endian. I will swap the endian on big endian machines

◆ Preload()

void BURGER_API Burger::Shape8Bit_t::Preload ( Burger::RezFile * pRezFile,
uint_t uRezNum )
static

Load a Burgerlib shape assuming it's little endian. I will swap the endian on big endian machines

Member Data Documentation

◆ m_Data

uint8_t Burger::Shape8Bit_t::m_Data[1]

Raw shape data.

◆ m_usHeight

uint16_t Burger::Shape8Bit_t::m_usHeight

Height of the shape.

◆ m_usWidth

uint16_t Burger::Shape8Bit_t::m_usWidth

Width of the shape.