Show
Ignore:
Timestamp:
05/06/03 15:13:31 (11 years ago)
Author:
robert
Message:

Added support for multibuffering of tex coordinates.

Files:
1 modified

Legend:

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

    r1933 r1936  
    6363        text->setAlignment(osgText::Text::CENTER_CENTER); 
    6464        text->setAutoRotateToScreen(true); 
    65         text->setAutoScaleToScreen(true); 
     65        text->setAutoScaleToLimitScreenSizeToFontResolution(true); 
    6666        text->setDrawMode(osgText::Text::TEXT_PIXMAP); 
    6767        text->setText(label); 
     
    8888        text->setAlignment(osgText::Text::CENTER_CENTER); 
    8989        text->setAutoRotateToScreen(true); 
    90         text->setAutoScaleToScreen(true); 
     90        text->setAutoScaleToLimitScreenSizeToFontResolution(true); 
    9191        text->setText(label); 
    9292         
     
    243243     
    244244    return 0; 
    245 } 
     245 
     246 
     247//     osg::Node* obj = new osg::Node; 
     248//     cout << "obj = "<<obj<<endl; 
     249//     cout << "sizeof(obj) = "<<sizeof(*obj)<<endl; 
     250//     cout << "sizeof(osg::Object) = "<<sizeof(osg::Object)<<endl; 
     251//     cout << "sizeof(osg::Referenced) = "<<sizeof(osg::Referenced)<<endl; 
     252//     cout << "vtbl = "<<*((unsigned int*)obj)<<endl; 
     253//     cout << "next = "<<*((unsigned int*)obj+1)<<endl; 
     254//  
     255//     osg::Node* obj2 = new osg::Node; 
     256//     obj2->ref(); 
     257//     obj2->ref(); 
     258//     obj2->ref(); 
     259//     cout << "obj = "<<obj2<<endl; 
     260//     cout << "sizeof(obj) = "<<sizeof(*obj)<<endl; 
     261//     cout << "sizeof(osg::Object) = "<<sizeof(osg::Object)<<endl; 
     262//     cout << "sizeof(osg::Referenced) = "<<sizeof(osg::Referenced)<<endl; 
     263//     cout << "vtbl = "<<*((unsigned int*)obj2)<<endl; 
     264//     cout << "next = "<<*((unsigned int*)obj2+1)<<endl; 
     265//  
     266//     osg::Group* obj3 = new osg::Group; 
     267//     cout << "obj = "<<obj3<<endl; 
     268//     cout << "sizeof(obj) = "<<sizeof(*obj3)<<endl; 
     269//     cout << "sizeof(osg::Object) = "<<sizeof(osg::Object)<<endl; 
     270//     cout << "sizeof(osg::Referenced) = "<<sizeof(osg::Referenced)<<endl; 
     271//     cout << "vtbl = "<<*((unsigned int*)obj3)<<endl; 
     272//     cout << "next = "<<*((unsigned int*)obj3+1)<<endl; 
     273}