Opengl Constant problem
Wojciech DaniĆo <[email protected]> Sat, 19 Jan 2013 01:32:56 +0100
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CAOWw=Gj0yAYrC4uZbvE7Q6-CB+GP8pDsKnQstkfNKqP2wUriDg@mail.gmail.com> |
Hi! I'm new to OpenGL and PyOpenGL, but Im trying to create a project to my colledge and I'm facing a big problem. I was trying to resolve it but without luck :( I'm trying to execute the python example (volume rendering in pyopengl) from http://www.siafoo.net/snippet/310, which uses the code from http://www.siafoo.net/snippet/142 and in that code the author uses PyOpenGL constant GL_STATIC_DRAW_ARB. Unfortunatelly my Python (2.7) with PyOpengl 3.0.2-r1000 complains, that this variable is not defined (gentoo linux, x86 64). It is used though in some examples like: http://www.songho.ca/opengl/gl_vbo.html. So the api has changed? Or maybe the example is wrong? How can I use glBufferData from OpenGl and what to pass as fourth argument to make it working? In the example there was glBufferData(GL_ARRAY_BUFFER, data[i], GL_STATIC_DRAW_ARB), where data is numpy array containing volume representation of an object. I would be very thankful for any help! All the best, Wojtek ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net _______________________________________________ PyOpenGL-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-users