[pypy-dev] pyopengl on pypy, take 2

2010-12-02 Thread rndblnch
hi, with your help, i have been able to patch pyopengl to make non-trivial glut/opengl interactive programs (involving shaders, vertex and pixel buffers) run on pypy. the programs: http://bitbucket.org/rndblnch/opengl-programmable/ some details about pyopengl modifications here: http://thread.g

Re: [pypy-dev] pyopengl on pypy

2010-12-01 Thread rndblnch
hi, Amaury Forgeot d'Arc gmail.com> writes: > But IMO the call to pythonapi.PyString_AsString could be removed in > OpenGL/arrays/strings.py: > > def dataPointer(value): >     return ctypes.cast(ctypes.c_char_p(value), ctypes.c_void_p).value great, this replacement (and also the one suggested b

Re: [pypy-dev] pyopengl on pypy

2010-12-01 Thread Amaury Forgeot d'Arc
Hi, 2010/12/1 renaud blanch > > i'm trying to make some pyopengl [0] -based code [1] run on top of pypy. > > this is partially successful, but i need some advice to progress further. > > pyopengl 3.x makes use of ctypes to provide the opengl binding, and it > > works out of the box for simple fu

Re: [pypy-dev] pyopengl on pypy

2010-12-01 Thread Armin Rigo
Hi Renaud, On Wed, Dec 1, 2010 at 2:21 PM, renaud blanch wrote: >>> We'd need to find a mechanism in PyPy that would give us that direct >>> memory-pointer access to be able to use it.  Note: a compacting garbage >>> collector (or anything else that can move memory locations) will cause >>> probl

[pypy-dev] pyopengl on pypy

2010-12-01 Thread renaud blanch
this time with a subject, the message, and my apologies for the noise, renaud On 12/1/10, renaud blanch wrote: > hi, > > i'm trying to make some pyopengl [0] -based code [1] run on top of pypy. > this is partially successful, but i need some advice to progress further. > pyopengl 3.x makes use of

[pypy-dev] pyopengl on pypy

2010-12-01 Thread renaud blanch
sorry, i forgot to put a subject. renaud ___ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev

Re: [pypy-dev] PyOpenGL

2008-04-01 Thread Maciej Fijalkowski
Hum, good news :) I'll try. On Tue, Apr 1, 2008 at 9:30 AM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > Hello, > > > On Tue, Apr 1, 2008 at 6:24 AM, Maciek Fijalkowski <[EMAIL PROTECTED]> wrote: > > It seems that sentence on a web page saying "The binding is created > > using the standar

[pypy-dev] PyOpenGL

2008-04-01 Thread Amaury Forgeot d'Arc
Hello, On Tue, Apr 1, 2008 at 6:24 AM, Maciek Fijalkowski <[EMAIL PROTECTED]> wrote: > It seems that sentence on a web page saying "The binding is created > using the standard (in Python 2.5) ctypes library" is simply a lie :( > There is a SWIG binding laying there. There is roughly 20k lines of

[pypy-dev] PyOpenGL

2008-03-31 Thread Maciek Fijalkowski
It seems that sentence on a web page saying "The binding is created using the standard (in Python 2.5) ctypes library" is simply a lie :( There is a SWIG binding laying there. There is roughly 20k lines of swig interface code. Not sure how easy would be to wrap automatically, but this binding i