The Socrates Gameboy Advance Development Engine
The SGADE is a development library for the Nintendo Gameboy
Advance. It's free for all uses and is distributed without guarantees.
For more information visit
the SGADE page.
00001 // ---------------------------------------------------------------------------- 00013 // ---------------------------------------------------------------------------- 00014 00015 #ifndef SO_TILE_MAP_H 00016 #define SO_TILE_MAP_H 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 // ---------------------------------------------------------------------------- //! @{ 00033 // ---------------------------------------------------------------------------- 00034 00035 // ---------------------------------------------------------------------------- 00036 // Includes 00037 // ---------------------------------------------------------------------------- 00038 00039 #include "SoSystem.h" 00040 00041 // ---------------------------------------------------------------------------- 00042 // Defines 00043 // ---------------------------------------------------------------------------- 00044 00045 // ---------------------------------------------------------------------------- 00046 // Typedefs 00047 // ---------------------------------------------------------------------------- 00048 00058 typedef struct 00059 { 00060 bool m_16Colors; 00061 u16 m_PalBank; 00062 00063 u16 m_SizeX; 00064 u16 m_SizeY; 00065 u16* m_Data; 00066 } SoTileMap; 00067 00068 00069 // ---------------------------------------------------------------------------- 00070 // Public methods; 00071 // ---------------------------------------------------------------------------- 00072 00074 #define SoTileMapIs16Colors(a_This) ((a_This)->m_16Colors) 00075 00076 #define SoTileMapGetPaletteBank(a_This) ((a_This)->m_PalBank) 00077 00078 #define SoTileMapGetNumCols(a_This) ((a_This)->m_SizeX) 00079 00080 #define SoTileMapGetNumRows(a_This) ((a_This)->m_SizeY) 00081 00082 #define SoTileMapGetData(a_This) ((a_This)->m_Data) 00083 00084 00085 // ---------------------------------------------------------------------------- 00086 // EOF 00087 // ---------------------------------------------------------------------------- 00088 00090 00091 #ifdef __cplusplus 00092 } // extern "C" 00093 #endif 00094 00095 #endif // SO_TILE_MAP_H