Changeset 1927 for OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
- Timestamp:
- 04/30/03 13:40:17 (10 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgtext/osgtext.cpp
r1922 r1927 115 115 116 116 // use text that uses 10 by 10 texels as a target resolution for fonts. 117 text->setFont Size(10,10); // blocky but small texture memory usage118 119 text->setText("text->setFont Size(10,10); // blocky but small texture memory usage");117 text->setFontResolution(10,10); // blocky but small texture memory usage 118 119 text->setText("text->setFontResolution(10,10); // blocky but small texture memory usage"); 120 120 geode->addDrawable(text); 121 121 } … … 130 130 131 131 // use text that uses 10 by 10 texels as a target resolution for fonts. 132 text->setFont Size(20,20); // smoother but higher texture memory usage (but still quite low).133 134 text->setText("text->setFont Size(20,20); // smoother but higher texture memory usage (but still quite low).");132 text->setFontResolution(20,20); // smoother but higher texture memory usage (but still quite low). 133 134 text->setText("text->setFontResolution(20,20); // smoother but higher texture memory usage (but still quite low)."); 135 135 geode->addDrawable(text); 136 136 } … … 145 145 146 146 // use text that uses 10 by 10 texels as a target resolution for fonts. 147 text->setFont Size(40,40); // even smoother but again higher texture memory usage.148 149 text->setText("text->setFont Size(40,40); // even smoother but again higher texture memory usage.");147 text->setFontResolution(40,40); // even smoother but again higher texture memory usage. 148 149 text->setText("text->setFontResolution(40,40); // even smoother but again higher texture memory usage."); 150 150 geode->addDrawable(text); 151 151 } … … 165 165 text->setFont(font); 166 166 text->setColor(characterSizeColor); 167 text->setFont Size(20,20);167 text->setFontResolution(20,20); 168 168 text->setPosition(cursor); 169 169 … … 180 180 text->setFont(font); 181 181 text->setColor(characterSizeColor); 182 text->setFont Size(30,30);182 text->setFontResolution(30,30); 183 183 text->setPosition(cursor); 184 184 … … 195 195 text->setFont(font); 196 196 text->setColor(characterSizeColor); 197 text->setFont Size(40,40);197 text->setFontResolution(40,40); 198 198 text->setPosition(cursor); 199 199
