Re: [PyOpenGL-Users] OPENGL
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2007-03-16 20:47:03
|
horace wrote: > would it be possible to write a tool which automatically converts > ctype wrappers to pyrex? wouldn't that be nice? > > i am no computer scientist though and maybe this is a stupid idea > which isn't feasible. :) In fact, PyPy is able to translate a subset of ctypes into a number of code types including C code with type inferencing allowing for significant code simplification... i.e. the code should get close to the speed of directly C-coded source code. The wrappers are also built from gcc-xml output (for the "raw" API), I *believe* pyrex already has a mechanism that allows for the same transformation (i.e. build a raw API from raw gcc-xml). Which is to say, we could, in theory, provide a way to register a "raw" API plugin for PyOpenGL that would allow for entirely replacing the core-code operations (or something like that). That way a compiled system could provide a run-time pluggable replacement for the pure-python code... in theory, anyway... Have to get back to work now. Have fun, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |