Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 31, 2005, 9:28:09 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: coloring issue, now the color is set right, and a little plastic surgery on the texCoord (struct instead of float*)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/graphics/font/glfont.h

    r3696 r3700  
    1717#define FONT_DEFAULT_COLOR_G    256                  //!< the default red green (color) of the text
    1818#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.
    2020
    2121
     
    3737  int bearingY;                  //!< How much is above the Origin
    3838  int advance;                   //!< How big a Glyph would be in monospace-mode
     39};
     40
     41//! A Struct to handel Texture Coordinates for quads
     42struct 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
    3948};
    4049
     
    7382  SDL_Rect textPosSize;            //!< An SDL-Rectangle representing the position and size of the Text on the screen.
    7483  int renderStyle;                 //!< The Renderstyle
    75   GLfloat* texcoord;               //!< Texture-coordinates \todo fix this to have a struct
     84  TexCoord texCoord;               //!< Texture-coordinates \todo fix this to have a struct
    7685
    7786  bool init(const char* fontFile, unsigned int fontSize = FONT_DEFAULT_SIZE);
     
    8897  static bool checkVersion(void);
    8998
    90   GLuint loadTexture(SDL_Surface* surface, GLfloat* texcoord);
     99  GLuint loadTexture(SDL_Surface* surface, TexCoord* texCoord);
    91100
    92101  static int powerOfTwo(int input);
Note: See TracChangeset for help on using the changeset viewer.