1 #ifndef TEXT_H_INCLUDED 2 #define TEXT_H_INCLUDED 3 4 /************************************************************************ 5 * This file is part of Wizznic. * 6 * Copyright 2009-2015 Jimmy Christensen <dusted@dusted.dk> * 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 * 18 * along with Wizznic. If not, see <http://www.gnu.org/licenses/>. * 19 ************************************************************************/ 20 21 #include <SDL/SDL.h> 22 #include "ticks.h" 23 24 #define NUMFONTS 4 25 26 #define GAMEFONTMEDIUM 3 27 #define GAMEFONTSMALL 2 28 #define FONTMEDIUM 1 29 #define FONTSMALL 0 30 31 32 void txtInit(); //load menu charactersets 33 void txtLoadGameCharSet(const char* font); 34 void txtFreeGameCharSet(); 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); 37 void txtWave( SDL_Surface* scr, int fontNum, const char* txt, int x, int y, float* rot); 38 int* getCharSize(int font); 39 SDL_Rect* getTxtBox(); 40 41 #endif // TEXT_H_INCLUDED 42