Show
Ignore:
Timestamp:
04/30/03 13:40:17 (11 years ago)
Author:
robert
Message:

Added support for automatic scaling of text to screen coords. Optimized
the text implementation to provide better speed, especially by using the
alignement to screen option.

Deprecated the Text::setFontSize(,) method, which is now being replaced
by setFontResolution(,)

Fixed typos in Texture*.cpp.

Removed old deprecated methods from osg headers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osglogo/osglogo.cpp

    r1906 r1927  
    131131 
    132132    text->setFont(font); 
    133     text->setFontSize(64,64); 
     133    text->setFontResolution(64,64); 
    134134    text->setAlignment(osgText::Text::CENTER_CENTER); 
    135135    text->setAxisAlignment(osgText::Text::XZ_PLANE); 
     
    158158  
    159159    text->setFont(font); 
    160     text->setFontSize(110,120); 
     160    text->setFontResolution(110,120); 
    161161    text->setAlignment(osgText::Text::RIGHT_CENTER); 
    162162    text->setAxisAlignment(osgText::Text::XZ_PLANE);