#34 File Extension for ARB vertex buffer object (VBO)

v2.0
open
nobody
GL (10)
5
2005-01-04
2005-01-04
Brian Leair
No

Swig interface and updated typemaps to PyOpenGL
2.0.1.09 to add support for VBOs. Unless contains
updated NeHe lesson 45 and OpenGLContext test script

File list:
./interface/GL/ARB/vertex_buffer_object.i
./interface/GL/GL__init__.i
./interface/simple_typemaps.inc
./interface/util.inc
./OpenGL/Demo/NeHe/lesson45.py
./OpenGLContext/tests/gldrawarrays_VBO.py
./PyVBOReadme.txt

See the PyVBOReadme for usage details

Discussion

  • Brian Leair

    Brian Leair - 2005-01-04

    Swig for ARB vertex buffer object

     
  • Mike C. Fletcher

    Logged In: YES
    user_id=34901

    Okay, have reviewed and tried to integrate the patch for
    2.0.2. I'm not really thrilled about initialising the
    extension within the core GL, but I suppose it's the
    cleanest solution at the moment.

    The typemap for pointers:
    %typemap(python, in) (GLvoid * pointer_or_offset,
    _GL_Argument_Type arg_type)

    does not seem to be working properly; the problem is that we
    wind up always having to pass in a "treat pointer as
    pointer" argument type for every pointer-setting call.
    That's likely a SWIG 1.3.23 change? Don't know at the moment.

    I moved the non-simple (pointer) typemap into complex
    typemaps, as simple typemaps is more for the
    brain-dead-simple stuff.

    Traceback (most recent call last):
    File "p:\OpenGLContext\visitor.py", line 273, in visit
    token = method( self, node )
    File "p:\OpenGLContext\rendervisitor.py", line 234, in
    Rendering
    return node.Render( self )
    File "p:\OpenGLContext\scenegraph\shape.py", line 51, in
    Render
    self.geometry.render (lit = lit, textured = textured,
    mode=mode)
    File "p:\OpenGLContext\scenegraph\indexedfaceset.py", line
    152, in render
    mode=mode,
    File "p:\OpenGLContext\scenegraph\arraygeometry.py", line
    115, in render
    glVertexPointerd(self.vertices)
    TypeError: glVertexPointerd() takes exactly 2 arguments (1
    given)

     
  • Brian Leair

    Brian Leair - 2005-04-09

    Logged In: YES
    user_id=949163

    Revised patch to work for PyOpenGL 2.0.2 and SWIG 1.3.23

     
  • Brian Leair

    Brian Leair - 2005-04-09

    Reworked vbo patch from cvs of PyOpenGL2.0.2

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks