Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 4:21:36 PM (19 years ago)
Author:
bensch
Message:

orxonox/braches/textEngine: now shows single char

File:
1 edited

Legend:

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

    r3740 r3747  
    2626
    2727#define FONT_HIGHEST_KNOWN_CHAR 128                  //!< The highest character known to the textEngine.
     28
     29#define TEXT_STATIC             0                    //!< Static Text
     30#define TEXT_DYNAMIC            1                    //!< Dynamic Text
     31/**
     32 * STATIC means: a font, that is only one GL-face.
     33 ** it is very fast, and can be used for all text
     34 ** that does not have to be changed anymore, or if
     35 ** the the text should look very nice
     36 * DYNAMIC means: a very fast font, that will is build
     37 ** from multiple quads.
     38 ** Use this type, if you want to create fast changing
     39 ** text like a counter.
     40 */
    2841
    2942
     
    7891  // text
    7992  void setBindNode(PNode* bindNode);
     93  void setType(int type);
    8094  void setText(const char* text);
    8195  void setStyle(char* renderStyle);
     
    95109 
    96110  Glyph** glyphArray;               //!< An Array of all the Glyphs stored in the Array of Glyphs.
     111  GLuint fastTextureID;             //!< The fast textureID.
    97112
    98113  //! Represents one textElement.
    99114  struct Text
    100115  {
     116    int type;                   //!< The type of this Font.
    101117    char* text;                      //!< The text to display
    102118    SDL_Color color;                 //!< The color of the font.
Note: See TracChangeset for help on using the changeset viewer.