Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
NeoVerticalSpriteSheet< T_BUFFER_METHOD > Class Template Reference

#include <NeoVerticalSpriteSheet.h>

Public Member Functions

 NeoVerticalSpriteSheet (uint16_t width, uint16_t height, uint16_t spriteHeight, PGM_VOID_P pixels)
 
 operator NeoBufferContext< typename T_BUFFER_METHOD::ColorFeature > ()
 
uint16_t SpriteWidth () const
 
uint16_t SpriteHeight () const
 
uint16_t SpriteCount () const
 
void SetPixelColor (uint16_t indexSprite, int16_t x, int16_t y, typename T_BUFFER_METHOD::ColorObject color)
 
T_BUFFER_METHOD::ColorObject GetPixelColor (uint16_t indexSprite, int16_t x, int16_t y) const
 
void ClearTo (typename T_BUFFER_METHOD::ColorObject color)
 
void Blt (NeoBufferContext< typename T_BUFFER_METHOD::ColorFeature > destBuffer, uint16_t indexPixel, uint16_t indexSprite)
 
void Blt (NeoBufferContext< typename T_BUFFER_METHOD::ColorFeature > destBuffer, int16_t x, int16_t y, uint16_t indexSprite, LayoutMapCallback layoutMap)
 

Constructor & Destructor Documentation

◆ NeoVerticalSpriteSheet()

template<typename T_BUFFER_METHOD >
NeoVerticalSpriteSheet< T_BUFFER_METHOD >::NeoVerticalSpriteSheet ( uint16_t  width,
uint16_t  height,
uint16_t  spriteHeight,
PGM_VOID_P  pixels 
)
inline

Member Function Documentation

◆ Blt() [1/2]

template<typename T_BUFFER_METHOD >
void NeoVerticalSpriteSheet< T_BUFFER_METHOD >::Blt ( NeoBufferContext< typename T_BUFFER_METHOD::ColorFeature >  destBuffer,
int16_t  x,
int16_t  y,
uint16_t  indexSprite,
LayoutMapCallback  layoutMap 
)
inline

◆ Blt() [2/2]

template<typename T_BUFFER_METHOD >
void NeoVerticalSpriteSheet< T_BUFFER_METHOD >::Blt ( NeoBufferContext< typename T_BUFFER_METHOD::ColorFeature >  destBuffer,
uint16_t  indexPixel,
uint16_t  indexSprite 
)
inline

◆ ClearTo()

template<typename T_BUFFER_METHOD >
void NeoVerticalSpriteSheet< T_BUFFER_METHOD >::ClearTo ( typename T_BUFFER_METHOD::ColorObject  color)
inline

◆ GetPixelColor()

template<typename T_BUFFER_METHOD >
T_BUFFER_METHOD::ColorObject NeoVerticalSpriteSheet< T_BUFFER_METHOD >::GetPixelColor ( uint16_t  indexSprite,
int16_t  x,
int16_t  y 
) const
inline

◆ operator NeoBufferContext< typename T_BUFFER_METHOD::ColorFeature >()

template<typename T_BUFFER_METHOD >
NeoVerticalSpriteSheet< T_BUFFER_METHOD >::operator NeoBufferContext< typename T_BUFFER_METHOD::ColorFeature > ( )
inline

◆ SetPixelColor()

template<typename T_BUFFER_METHOD >
void NeoVerticalSpriteSheet< T_BUFFER_METHOD >::SetPixelColor ( uint16_t  indexSprite,
int16_t  x,
int16_t  y,
typename T_BUFFER_METHOD::ColorObject  color 
)
inline

◆ SpriteCount()

template<typename T_BUFFER_METHOD >
uint16_t NeoVerticalSpriteSheet< T_BUFFER_METHOD >::SpriteCount ( ) const
inline

◆ SpriteHeight()

template<typename T_BUFFER_METHOD >
uint16_t NeoVerticalSpriteSheet< T_BUFFER_METHOD >::SpriteHeight ( ) const
inline

◆ SpriteWidth()

template<typename T_BUFFER_METHOD >
uint16_t NeoVerticalSpriteSheet< T_BUFFER_METHOD >::SpriteWidth ( ) const
inline