diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-21 00:09:35 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-21 00:09:35 +0200 |
| commit | 627de0d81f81ad60d26d782f2425be1e6f5a3dbc (patch) | |
| tree | 91ffa502aa62c03c2fecf28529ebc8c6b20828c5 /Source/Font.h | |
+ First commit. It works painfully slow, but gets the job done. Still lots of room for improvement.
Diffstat (limited to 'Source/Font.h')
| -rw-r--r-- | Source/Font.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Source/Font.h b/Source/Font.h new file mode 100644 index 0000000..5a7d6b5 --- /dev/null +++ b/Source/Font.h @@ -0,0 +1,44 @@ +#ifndef __FONT_HEADER__ +#define __FONT_HEADER__ + +/* ************************************* + * Includes + * *************************************/ + +#include "Global_Inc.h" +#include "System.h" +#include "Gfx.h" +#include "GameStructures.h" +#include <stdarg.h> + +/* ************************************* + * Defines + * *************************************/ + +#define FONT_DEFAULT_CHAR_SIZE 16 +#define FONT_DEFAULT_INIT_CHAR '!' + +/* ************************************** + * Structs and enums * + * *************************************/ + +/* ************************************* + * Global prototypes + * *************************************/ + +bool FontLoadImage(char* strPath, TYPE_FONT * ptrFont); +void FontSetSize(TYPE_FONT * ptrFont, short size, short bitshift); +void FontPrintText(TYPE_FONT *ptrFont, short x, short y, char* str, ...); +void FontSetInitChar(TYPE_FONT * ptrFont, char c); +void FontSetFlags(TYPE_FONT * ptrFont, FONT_FLAGS flags); +void FontCyclic(void); +void FontSetSpacing(TYPE_FONT* ptrFont, short spacing); + +/* ************************************* + * Global variables + * *************************************/ + +TYPE_FONT RadioFont; +TYPE_FONT SmallFont; + +#endif //__FONT_HEADER__ |
