Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

GLE flies the OpenGL-ctypes skies (Along with major reconstruction of the wrapper module...)


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 ...

Continue reading

What to work on when I get back? (GLU, GLE, GLUT, or Win32 and WGL)


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 ...

Continue reading

New ctypes error-handling protocol (Simplifying code here and there...)


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 ...

Continue reading

Full-content feeds for CoreBlog (Haven't yet figured out how to make the stylesheets work properly)


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 ...

Continue reading

Long day's Ajax into night (Nevow livepage for Cinemon)


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 ...

Continue reading

Substrates are important for productivity (Servers, for instance)


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 ...

Continue reading

Well at least the redbook demos work (Running tests is a good thing...)


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 ...

Continue reading

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)


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, ...

Continue reading

Image handling begins to shape up (Wrappers upon wrappers upon wrappers...)


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 ...

Continue reading

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...)


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 ...

Continue reading