[osg-users] VBO static_draw and memory

Claude Song knowthyself.cn at gmail.com
Mon Mar 4 17:30:59 PST 2019


Hi,
    Thanks, mp3butcher.
     I've found another way to solve my problem. I create a new class which extends osg::Array, and create a mixin class MyVectorWrapper which implements the interface osg::Array.
    class MyTemplateArray : public osg::Array, public MyVectorWrapper<value_type, DataSize>

     This method perfectly sovled the problem. But the osg::Node subclass who use this data structure must override traverse(osg::NodeVisitor& nv), and carefully deal with the NodeVisitor which would use the vertex\normal\color data stored in this MyTemplateArray array.


... 

Thank you!

Cheers,
knowthyself

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75689#75689







More information about the osg-users mailing list