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_BKG_FONT_H 00016 #define SO_BKG_FONT_H 00017 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 #include "SoTileSet.h" 00023 00024 // ---------------------------------------------------------------------------- //! @{ 00038 // ---------------------------------------------------------------------------- 00039 00040 // ---------------------------------------------------------------------------- 00041 // Includes 00042 // ---------------------------------------------------------------------------- 00043 00044 #include "SoSystem.h" 00045 00046 00047 // ---------------------------------------------------------------------------- 00048 // Typedefs 00049 // ---------------------------------------------------------------------------- 00050 00063 typedef struct { 00064 u16 m_FirstChar; 00065 u16 m_NumChars; 00066 u16 m_TileOffset; 00067 u16* m_CharMap; 00068 } SoBkgFont; 00069 00070 00071 00072 // ---------------------------------------------------------------------------- 00073 // Public methods; 00074 // ---------------------------------------------------------------------------- 00075 00077 #define SoBkgFontGetFirstChar(a_This) ((const u16)((a_This)->m_FirstChar)) 00078 00080 #define SoBkgFontGetNumChars(a_This) ((const u16)((a_This)->m_NumChars)) 00081 00083 #define SoBkgFontGetCharMap(a_This) ((a_This)->m_CharMap) 00084 00085 00086 const SoTileSet *SoBkgGetDefaultFontTileSet(); 00087 00088 00089 // ---------------------------------------------------------------------------- 00090 // EOF 00091 // ---------------------------------------------------------------------------- 00092 00094 00095 #ifdef __cplusplus 00096 } // extern "C" 00097 #endif 00098 00099 #endif // SO_BKG_FONT_H