Hi,
I would like to use pypy/bin/compilemodule.py to compile some of my code, which uses OpenGL.
I am wondering why the following does not work (Link error on glEnd) :

    from ctypes import windll

    glEnd = windll.opengl32.glEnd
    glEnd.restype = None

    def DrawSomething(space):
        glEnd()



While this does compile fine:

    from pypy.rpython.rctypes.tool import ctypes_platform
    from pypy.rpython.rctypes.tool.libc import libc
    from ctypes import *

    time_t = ctypes_platform.getsimpletype('time_t', '#include <time.h>', c_long)
    time = libc.time
    time.argtypes = [POINTER(time_t)]
    time.restype = time_t

    def DrawLine(space):
        time(None)


Any help would be much appreciated.
Thanks,

Laurent Destriau
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to