Changeset 3700 in orxonox.OLD for orxonox/branches/textEngine/src/lib/graphics/font/glfont.h
- Timestamp:
- Mar 31, 2005, 9:28:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/glfont.h
r3696 r3700 17 17 #define FONT_DEFAULT_COLOR_G 256 //!< the default red green (color) of the text 18 18 #define FONT_DEFAULT_COLOR_B 256 //!< the default red blue (color) of the text 19 #define FONT_NUM_COLORS 256 //!< The number of colors. 19 #define FONT_NUM_COLORS 256 //!< The number of colors. 20 20 21 21 … … 37 37 int bearingY; //!< How much is above the Origin 38 38 int advance; //!< How big a Glyph would be in monospace-mode 39 }; 40 41 //! A Struct to handel Texture Coordinates for quads 42 struct TexCoord 43 { 44 float minU; //!< The minimum U-Coordinate 45 float maxU; //!< The maximum U-Coordinate 46 float minV; //!< The minimum V-Coordinate 47 float maxV; //!< The maximum V-Coordinate 39 48 }; 40 49 … … 73 82 SDL_Rect textPosSize; //!< An SDL-Rectangle representing the position and size of the Text on the screen. 74 83 int renderStyle; //!< The Renderstyle 75 GLfloat* texcoord; //!< Texture-coordinates \todo fix this to have a struct84 TexCoord texCoord; //!< Texture-coordinates \todo fix this to have a struct 76 85 77 86 bool init(const char* fontFile, unsigned int fontSize = FONT_DEFAULT_SIZE); … … 88 97 static bool checkVersion(void); 89 98 90 GLuint loadTexture(SDL_Surface* surface, GLfloat* texcoord);99 GLuint loadTexture(SDL_Surface* surface, TexCoord* texCoord); 91 100 92 101 static int powerOfTwo(int input);
Note: See TracChangeset
for help on using the changeset viewer.