[pypy-dev] Extension compiler and external DLLs
laurent destriau
laurent.destriau at gmail.com
Sat Aug 26 04:14:11 CEST 2006
> I have to admit it didn't work for me...
It did for me:
from pypy.rpython.rctypes.tool.ctypes_platform import configure, Library
class CConfig:
_header_ = ""
_includes_ = ["windows.h", "gl/gl.h"]
gl = Library("opengl32")
gl = configure(CConfig)["gl"]
glEnd = gl.glEnd
glEnd.restype = None
def DrawSomething(space):
glEnd()
Thanks!
--
Laurent Destriau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/pypy-dev/attachments/20060826/0f21694c/attachment.htm
More information about the pypy-dev
mailing list