Category archives: Snaking
Discussions of programming, particularly of programming Python
GLE flies the OpenGL-ctypes skies (Along with major reconstruction of the wrapper module...)
Written by
on
in
Snaking.
One of the things I'm trying to do with building OpenGL-ctypes is to figure out just what's needed to wrap complex software using the package, and (eventually) to be able to suggest ways to make ctypes easier to use for such tasks. Part of doing that is getting it wrong a couple of times, and ...
What to work on when I get back? (GLU, GLE, GLUT, or Win32 and WGL)
Written by
on
in
Snaking.
Waiting for Rosey to get her hair dried before I can head off to gram's place. I'm hesitant to plow back into the GLU or GLUT stuff because I've burned so many hours spinning my wheels in there. GLE would be a nice "easy win" (I hope), and the Win32/WGL stuff should be straightforward. I ...
New ctypes error-handling protocol (Simplifying code here and there...)
Written by
on
in
Snaking.
Thomas added a spiffy new protocol to ctypes to allow for registering error-checking functions for a ctypes cFunction. It's a pretty simple protocol, just assign to the errcheck attribute of the cFunction a function with a signature like so:
def glCheckError(
result,
function,
cArguments,
*args
):
"""Return final result or raise error"""
return result
With ...!-->!-->
Full-content feeds for CoreBlog (Haven't yet figured out how to make the stylesheets work properly)
Written by
on
in
Snaking.
One of my readers noted that the Plumbing Life's Depths RDF feeds are rather skimpy in the amount of information included in them (only a very small snippet from the main body of the text). So I've added a full-content (but not extended-content) feed, i.e. a feed that has everything that appears on the main ...
Long day's Ajax into night (Nevow livepage for Cinemon)
Written by
on
in
Snaking.
Some part of me is definitely a geek. I wound up working more than 14 hours straight today, mostly because I just couldn't stop working on the problem until it was solved, but the problem refused to solve itself.
What I've been doing is creating a trigger definition mechanism using Nevow's LivePage (Ajax) technology. The ...!-->!-->
Substrates are important for productivity (Servers, for instance)
Written by
on
in
Snaking.
The whole dratted day has been a server-less mess. I did a major graphic re-kit of the VOIP front-end and then tried to pick up all of the little extra pieces that don't require a working server, but when the project is "a front end to this server" it's... uh... less than spectacularly easy to ...
Well at least the redbook demos work (Running tests is a good thing...)
Written by
on
in
Snaking.
So, I decided I would try running all of the demos/tests that could be expected to run with the current state of OpenGL-ctypes. There's a considerable number of working tests (see the "continue reading" link below for more detail than anyone could possibly care about).
What's better, in doing so, I discovered a fairly big ...!-->!-->
Image-handling code would be more useful if it *worked*, of course (Well, images seem to work fine, it's *textures* that are messed up)
Written by
on
in
Snaking.
Shademan postponed the movie until tomorrow, so I did a bit more work on OpenGL-ctypes. Quite a lot of wrapping of exotic functions I've never had a reason to call (mostly image-processing functions). Of course, I have no tests for any of those, so who knows if they work.
However, I seem to have lost, ...!-->!-->
Image handling begins to shape up (Wrappers upon wrappers upon wrappers...)
Written by
on
in
Snaking.
Managed to get the image-handling code starting to look like a reasonable approach to the problem. Still quite a few functions un-wrapped, but in most cases the effort to wrap is now down to two lines of code. Also got quite a few more of the glGet* functions implemented. GLUT is still basically nonfunctional, and ...
Doh! Don't assume constant formatting in GL headers (Not all that surprising it's been failing... though it didn't start magically working yet...)
Written by
on
in
Snaking.
Turns out that all of the GLU and GLUT constants were mis-declared. I used the same script to rip them out of the header as I did for GL... but in gl.h the constants are declared in hexidecimal. In the other two they are declared in decimal, and the script got a little carried away ...