OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
tile.h
Go to the documentation of this file.
1
28
29#ifndef SNES_TILE_H
30#define SNES_TILE_H
31
32#include <snes/types.h>
33
39void tileEncode2bpp(const u8 *pixels, u8 *tile);
40
46void tileEncode4bpp(const u8 *pixels, u8 *tile);
47
54void tileEncode8bpp(const u8 *pixels, u8 *tile);
55
94void tileBlitGlyph2bpp(u8 FAR *tile, u8 FAR *right, const u8 FAR *glyph,
95 u8 glyph_row, u8 tile_row, u8 rows, u8 shift);
96
97#endif /* SNES_TILE_H */
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:47
#define FAR
Place a global in bank $7E WRAM, outside the 8 KB bank-0 band.
Definition types.h:130
void tileEncode4bpp(const u8 *pixels, u8 *tile)
64 colour indices (0-15) to one 4bpp tile
void tileEncode2bpp(const u8 *pixels, u8 *tile)
64 colour indices (0-3) to one 2bpp tile
void tileEncode8bpp(const u8 *pixels, u8 *tile)
64 colour indices (0-255) to one 8bpp tile
void tileBlitGlyph2bpp(u8 FAR *tile, u8 FAR *right, const u8 FAR *glyph, u8 glyph_row, u8 tile_row, u8 rows, u8 shift)
OR rows of a 2bpp glyph into a tile at a pixel offset.
OpenSNES Standard Types.