struct Tile4
32 bytes Tile, 4 bit depth. 8x8, 64 dots. Each nibble represents the color in the palette of the dot.
Tile4 | 32 bytes Tile, 4 bit depth. |
Variables | |
data | Actual data of the tile. |
Functions | |
getLowerNibble | |
getHigherNibble | |
getByID | |
getByXY | |
draw | Draws the tile |
draw_obj | Draws the sprite tile. |
draw_obj_rot | Draws the sprite (rotated) tile |
Tile8 | 64 bytes Tile, 8 bit depth. |
Variables | |
data | Actual tile data. |
Functions | |
draw | Draws the tile. |
draw_obj | Draws the sprite tile |
draw_obj_rot | Draws the sprite (rotated) tile |
inline void draw( Palettes * palette, int palID, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer )
Draws the tile
palette | Pram pointer. |
palID | The palette that has to be used. |
fromX | X-coord from which the drawing shall start. |
toX | X-coord in which the drawing shall end. |
fromY | Y-coord from which the drawing shall start. |
toY | Y-coord in which the drawing shall end. |
flipX | Horizontally flip the tile? |
flipY | Vertically flip the tile? |
outBuffer | Output buffer. |
inline void draw_obj( Palettes * palette, int palID, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )
Draws the sprite tile.
palette | Pram pointer. |
palID | The palette that has to be used. |
fromX | X-coord from which the drawing shall start. |
toX | X-coord in which the drawing shall end. |
fromY | Y-coord from which the drawing shall start. |
toY | Y-coord in which the drawing shall end. |
flipX | Horizontally flip the tile? |
flipY | Vertically flip the tile? |
outBuffer | Output buffer. |
outPriority | Output priority buffer. |
priorityValue | Priority value to set in the buffer. |
inline void draw_obj_rot( Palettes * palette, int palID, int xOff, int yOff, int pa, int pb, int pc, int pd, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )
Draws the sprite (rotated) tile
palette | Pram pointer. |
palID | The palette that has to be used. |
xOff | X-coord of the tile. |
yOff | Y-coord of the tile. |
pa | Transform dx. |
pb | Transform dmx. |
pc | Transform dy. |
pd | Transform dmy. |
outBuffer | Output buffer. |
outPriority | Output priority buffer. |
priorityValue | Output priority value. |
inline void draw( Palettes * palette, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer )
Draws the tile.
palette | Pram pointer. |
fromX | X-coord from which the drawing shall start. |
toX | X-coord in which the drawing shall end. |
fromY | Y-coord from which the drawing shall start. |
toY | Y-coord in which the drawing shall end. |
flipX | Horizontally flip the tile? |
flipY | Vertically flip the tile? |
outBuffer | Output buffer. |
inline void draw_obj( Palettes * palette, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )
Draws the sprite tile
palette | Pram pointer. |
fromX | X-coord from which the drawing shall start. |
toX | X-coord in which the drawing shall end. |
fromY | Y-coord from which the drawing shall start. |
toY | Y-coord in which the drawing shall end. |
flipX | Horizontally flip the tile? |
flipY | Vertically flip the tile? |
outBuffer | Output buffer. |
outPriority | Output priority buffer. |
priorityValue | Output priority Value. |
inline void draw_obj_rot( Palettes * palette, int xOff, int yOff, int pa, int pb, int pc, int pd, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )
Draws the sprite (rotated) tile
palette | Pram pointer. |
xOff | X-coord of the tile. |
yOff | Y-coord of the tile. |
pa | Transform dx. |
pb | Transform dmx. |
pc | Transform dy. |
pd | Transform dmy. |
outBuffer | Output buffer. |
outPriority | Output priority buffer. |
priorityValue | Output priority value. |
32 bytes Tile, 4 bit depth.
struct Tile4
Actual data of the tile.
uint8_t data[32]
inline int getLowerNibble( int i )
inline int getHigherNibble( int i )
inline int getByID( int i )
inline int getByXY( int x, int y )
Draws the tile
inline void draw( Palettes * palette, int palID, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer )
Draws the sprite tile.
inline void draw_obj( Palettes * palette, int palID, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )
Draws the sprite (rotated) tile
inline void draw_obj_rot( Palettes * palette, int palID, int xOff, int yOff, int pa, int pb, int pc, int pd, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )
64 bytes Tile, 8 bit depth.
struct Tile8
Actual tile data.
uint8_t data[64]
Draws the tile.
inline void draw( Palettes * palette, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer )
Draws the sprite tile
inline void draw_obj( Palettes * palette, int fromX, int toX, int fromY, int toY, bool flipX, bool flipY, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )
Draws the sprite (rotated) tile
inline void draw_obj_rot( Palettes * palette, int xOff, int yOff, int pa, int pb, int pc, int pd, uint16_t * outBuffer, uint8_t * outPriority, int priorityValue )