[osg-users] DrawElements vertices, normals, texcoords, indices without copying to osg::Array

2011-01-31 Thread Chris 'Xenon' Hanson
I have a situation coming up where my code will be fed large blocks of vertex, normal, texcoord and index data from a non-OSG code environment. The goal is to draw this data with DrawElements. Currently, it looks to me like I need to rebuild some of this data (anything Vec*-based) into an o

Re: [osg-users] DrawElements vertices, normals, texcoords, indices without copying to osg::Array

2011-01-31 Thread Peter Hrenka
Hi Chris, Am 31.01.2011 17:10, schrieb Chris 'Xenon' Hanson: I have a situation coming up where my code will be fed large blocks of vertex, normal, texcoord and index data from a non-OSG code environment. The goal is to draw this data with DrawElements. Currently, it looks to me like I

Re: [osg-users] DrawElements vertices, normals, texcoords, indices without copying to osg::Array

2011-01-31 Thread Chris 'Xenon' Hanson
On 1/31/2011 9:19 AM, Peter Hrenka wrote: > You can have a look at osgsharedarray in the examples-directory. > It shows how you can subclass osg::Array to use static C-array > data without copying. Thanks. That's exactly what I was hoping for. I'll go look at it right now. Appreciate the fast r