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/osghud/osghud.cpp

    r1844 r1927  
    4545 
    4646        text->setFont(timesFont); 
     47        text->setPosition(position); 
    4748        text->setText("Head Up Displays are simple :-)"); 
    48         text->setPosition(position); 
    4949         
    5050        position += delta; 
     
    5757 
    5858        text->setFont(timesFont); 
     59        text->setAutoScaleToScreen(true); 
     60        text->setPosition(position); 
    5961        text->setText("All you need to do is create your text in a subgraph."); 
    60         text->setPosition(position); 
    6162         
    6263        position += delta; 
     
    6970 
    7071        text->setFont(timesFont); 
     72        text->setPosition(position); 
    7173        text->setText("Disable depth test in this subgraph to ensure its always ontop."); 
    72         text->setPosition(position); 
    7374         
    7475        position += delta; 
     
    8081 
    8182        text->setFont(timesFont); 
     83        text->setPosition(position); 
    8284        text->setText("Then place an osg::Projection node above the subgraph\nto create an orthographic projection."); 
    83         text->setPosition(position); 
    8485         
    8586        position += delta; 
     
    9192 
    9293        text->setFont(timesFont); 
     94        text->setPosition(position); 
    9395        text->setText("And add an osg::ModelViewMatrix set to ABSOLUTE to ensure\nit remains independent from any external model view matrices."); 
    94         text->setPosition(position); 
    9596         
    9697        position += delta;