Hi,

I just figured out that i was having a lot of trouble when creating vbos inside 
a drawable because there was no opengl context set during its initialization.

After searching for a while i found out that if i initialized the vbos inside 
drawImplementation method then everything would work. There is one problem 
however, drawImplementation is const.

I ended up setting all my members to mutable and all my methods to const so i 
could make it work. And now it is working.

Isn't there a more proper way of initializing stuff inside a drawable? I would 
expect a initialize method or something like it, or a non const 
drawImplementation method.

I also tried to set the context before initializing the drawable without using 
the drawImplementation method to no avail.

Thanks a lot fellows

Cheers,
Alexandre

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to