Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5362 in orxonox.OLD for trunk/src/lib/graphics/text_engine


Ignore:
Timestamp:
Oct 11, 2005, 1:36:08 AM (19 years ago)
Author:
bensch
Message:

oroxnox/trunk: gui extends element2D

Location:
trunk/src/lib/graphics/text_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/text.cc

    r5357 r5362  
    5555}
    5656
     57/**
     58 * initializes Text
     59 */
    5760void Text::init()
    5861{
     
    112115
    113116/**
    114  *  Sets a new Text to the font
     117 * Sets a new Text to the font
    115118 * @param text the new text to set
    116119 */
     
    167170
    168171/**
    169  *  creates a texture out of the given parameters
     172 *  creates a texture out of the given parameters !! TEXT_STATIC !! - mode
    170173 *
    171174 * this has to be called every time by the user, to if changes were made.
  • trunk/src/lib/graphics/text_engine/text.h

    r5345 r5362  
    3434 ** Use this type, if you want to create fast changing
    3535 ** text like a counter.
    36  */typedef enum TEXT_RENDER_TYPE
     36 */
     37typedef enum TEXT_RENDER_TYPE
    3738{
    3839  TEXT_RENDER_STATIC      = 1,
     
    4950};
    5051
    51 
    52 ////////////
    53 /// TEXT ///
    54 ////////////
    5552//! Represents one textElement.
    5653class Text : public Element2D
     
    6966    /** @param blending the blending intensity to set (between 0.0 and 1.0) */
    7067    inline void setBlending(float blending) { this->blending = blending; };
    71 
    7268    /** sets the Color of the Text to render (values in [0-1]) @param r red @param g green @param b blue */
    7369    void setColor(float r, float g, float b) { this->color = Vector(r,g,b); };
Note: See TracChangeset for help on using the changeset viewer.