Show
Ignore:
Timestamp:
11/28/14 17:27:16 (10 hours ago)
Author:
robert
Message:

Added simple test script for osgUI's TabWidget?

Files:
1 modified

Legend:

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

    r13479 r13488  
    107107    } 
    108108 
     109    virtual unsigned int getElementSize() const { return sizeof(osg::Vec3); } 
     110 
    109111    /** Returns a pointer to the first element of the array. */ 
    110112    virtual const GLvoid* getDataPointer() const { 
     
    123125        return _numElements * sizeof(osg::Vec3); 
    124126    } 
     127 
     128    virtual void reserveArray(unsigned int num) { OSG_NOTICE<<"reserveArray() not supported"<<std::endl; } 
     129    virtual void resizeArray(unsigned int num) { OSG_NOTICE<<"resizeArray() not supported"<<std::endl; } 
    125130 
    126131private: 
     
    278283    // Changing these flags will tickle different cases in  
    279284    // Geometry::drawImplementation. They should all work fine  
    280     // with the shared array. Setting VertexIndices will hit  
    281     // some other cases. 
     285    // with the shared array.  
    282286    geom->setUseVertexBufferObjects(false); 
    283287    geom->setUseDisplayList(false); 
    284     geom->setFastPathHint(false); 
    285288 
    286289    geode->addDrawable( geom.get() );