Skip to content
Newer
Older
100644 42 lines (34 sloc) 1.79 KB
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
1 #ifndef TEXT_H_INCLUDED
d59992d @DusteDdk Moved headerguards to top of file since a bug in some IDE's will add …
authored Jan 14, 2012
2 #define TEXT_H_INCLUDED
3
cd298d6 @DusteDdk terrible mess
authored Nov 19, 2011
4 /************************************************************************
5 * This file is part of Wizznic. *
e61c024 @DusteDdk Updated copyleft header.
authored Apr 18, 2012
6 * Copyright 2009-2012 Jimmy Christensen <dusted@dusted.dk> *
cd298d6 @DusteDdk terrible mess
authored Nov 19, 2011
7 * Wizznic is free software: you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation, either version 3 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * Wizznic is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
18 * along with Wizznic. If not, see <http://www.gnu.org/licenses/>. *
cd298d6 @DusteDdk terrible mess
authored Nov 19, 2011
19 ************************************************************************/
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
20
540ed40 @DusteDdk Initial commit
authored Sep 26, 2011
21 #include <SDL/SDL.h>
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
22 #include "ticks.h"
23
24 #define NUMFONTS 4
25
540ed40 @DusteDdk Initial commit
authored Sep 26, 2011
26 #define GAMEFONTMEDIUM 3
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
27 #define GAMEFONTSMALL 2
540ed40 @DusteDdk Initial commit
authored Sep 26, 2011
28 #define FONTMEDIUM 1
29 #define FONTSMALL 0
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
30
31
32 void txtInit(); //load menu charactersets
33 void txtLoadGameCharSet(const char* font);
34 void txtFreeGameCharSet();
540ed40 @DusteDdk Initial commit
authored Sep 26, 2011
35 void txtWrite( SDL_Surface* scr,int font, const char* txt, int x, int y);
36 void txtWriteCenter( SDL_Surface* scr,int fontNum, const char* txt, int x, int y);
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
37 void txtWave( SDL_Surface* scr, int fontNum, const char* txt, int x, int y, float* rot);
540ed40 @DusteDdk Initial commit
authored Sep 26, 2011
38 int* getCharSize(int font);
0bc8b66 @DusteDdk Initial effort to support mouse in the menus.
authored Jan 23, 2012
39 inline SDL_Rect* getTxtBox();
540ed40 @DusteDdk Initial commit
authored Sep 26, 2011
40
aa80153 @DusteDdk Nuked all windows newlines.
authored Jun 9, 2012
41 #endif // TEXT_H_INCLUDED
Something went wrong with that request. Please try again.