00001 /* ************************************************************************************* 00002 Writer: Sebastien Bloc 00003 Copyright: 2003-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 00019 #ifndef INCLUDE_TEXT_TEXTURE_H 00020 #define INCLUDE_TEXT_TEXTURE_H 00021 00022 #include "face.h" 00023 00049 class TextTexture 00050 { 00051 public: 00052 MyString text; 00053 Texture *texture; 00054 COLORREF background; 00055 COLORREF color; 00056 int xFormat; 00057 int yFormat; 00058 Face *faceText; // graphics du conteneur 00059 00060 public: 00061 TextTexture(); 00062 void operator=(char *newText); 00063 void SetText(char *newText); 00064 void SetXYFormat(int x,int y){xFormat=x; yFormat=y;} 00065 void RefreshText(); 00066 void BindTexture(Face *face); 00067 BOOL MajTexture(); 00068 }; 00069 00070 #endif