Hello Andreas and users,        

I've a problem using getVboObject().
*vbo is always NULL.
My graphics card has OpenGL 2.0 and should support VBO extension.
Maybe I missunderstood the kind of this window pointer thing, that
getVboObject needs?
_mgr is type of SimpleSceneManager.
getWindow() returns osg::WindowPtr and getCPtr() then osg::Window*,
which I think is needed by getVboObject.

        // ...
        beginEditCP( geo );
                geo->setVbo( true );
                geo->setDlistCache( false );
        endEditCP( geo );

        GeoVBO* vbo = geo->getVboObject( _mgr->getWindow().getCPtr() );
        if( vbo == NULL )       // vbo rendering not supported or disabled
        {
                _wrapper.attach( getData(geo), getSize(geo) );
        }
        else                    // using vbo
        {
                GLuint positions_id = vbo->getPositions();
                _wrapper.attach( getData(geo), getSize(geo), positions_id );
        }
        // ...

Anybody see the problem?

Greetings
Sven

--


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to