00001 /* *********************************************************************************** 00002 Writer: Sebastien Bloc 00003 Copyright: 2004 00004 eMail: sebastien.bloc@free.fr 00005 URL: http://mignonsoft.free.fr 00006 00007 This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 as published by the Free Software Foundation; either version 2 00010 of the License, or (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 http://www.gnu.org/copyleft/gpl.html 00017 *********************************************************************************** */ 00018 00023 #ifndef INCLUDE_FONTE_H 00024 #define INCLUDE_FONTE_H 00025 00041 class Fonte : private Texture 00042 { 00043 private: 00044 // si valeur = 0 : lettre non disponible sinon indique le rang dans les lettre 00045 // disponible (commence a 1) 00046 int tabExistes[223]; 00047 int nbLetter; 00048 int offsetX; 00049 public: 00050 int deltaX; 00051 int deltaY; 00052 00053 Fonte(); 00054 void Zero(); 00055 void ExtractConfig(); 00056 void CreateFromBitmap(char *_name,char *_fileName); 00057 BOOL Use(char letter); 00058 void SetCoord(double x,double y); // x et y [0;1] 00059 }; 00060 00061 #endif