Category archives: Snaking
Discussions of programming, particularly of programming Python
OpenGL works *so* much better when using error checking (But don't forget that you can't use it within glBegin/glEnd)
Written by
on
in
Snaking.
Just finished the surgery to make OpenGL-ctypes do error-checking for all functions that allow error checking (i.e. those outside of glBegin/glEnd). It's still a bit ugly looking in there (the scar from having two wrapper classes will eventually have to be removed), but it does make the system work with considerably more of the tests ...
Long day on documentation (Much easier to read now)
Written by
on
in
Snaking.
Spent the whole day (modulo a few minutes fixing a bug) on user-level documentation for Cinemon. Looking back it's kind of amazing that I left so much of it in point-form, there's still a number of sections that need fleshing out, but the big topics are now at least discussed in full sentences :) . ...
Guess it's time to start thinking about PyCon2006 presentations (On the assumption that I'll somehow justify a ticket to Texas)
Written by
on
in
Snaking.
The real question is what to present? The last two years I've done presentations on "black magic" (metaclasses and descriptors), and those were fun, but we've probably covered most of the interesting material in there. And even then, the presentations were really more like classes/lectures, there was no new information other than organisational structure and ...
Figured out part of the wonkiness (Amazing what happens when you read the XXX comments...)
Written by
on
in
Snaking.
For those of you who don't program, XXX comments are not blue/off-colour comments, but "I'm moving too fast here to stop and try to figure out how to deal with this corner case, come back and consider it when ready" (or something to that effect). Some IDEs will even build a todo list out of ...
Ooh, look, the day is dying (Where do the dead days go?)
Written by
on
in
Snaking.
I wound up waking up rather early today (some bleepard with a fax machine keeps trying to spam our (non-esistent) fax machine). Mostly worked on finishing stuff for the VOIP billing system (e.g. formatting line items for the customer's bills), with a bit of Cinemon work toward the end of the day.
Anyway, think I'll ...!-->!-->
I am the programing inchworm (Images creep in (partially))
Written by
on
in
Snaking.
I started earlier working seriously on the image handling code (stopped when my hands gave out). At the moment each image-based function needs a special wrapper. There's also dozens of "special" wrappers from PyOpenGL that are really just type-specific versions of the root functions. So far I've just wound up hard-coding each wrapper, I'm hoping ...
Have to upgrade the video card soon (Kind of ridiculous writing OpenGL software when the hardware is this out-of-date)
Written by
on
in
Snaking.
I currently run an ATI All-in-Wonder Radeon 7500 in my workstation. Perfectly servicable card for work, given that all of my work these days is web-app development with SVG being the most demanding graphics I do. But it doesn't have any of the newer OpenGL features that need to be wrapped for PyOpenGL (or OpenGL-ctypes). ...
Lots of array-handling refactoring (Mmm refactored code...)
Written by
on
in
Snaking.
Quite a bit more work on the array-handling code in OpenGL-ctypes. It seems to be working properly now, and the number of OpenGLContext demos that are running is growing substantially (even have the first bitmap-based demo working (though it's a pretty simple demo, no PIL involved)).
Something wonky is going on with the GLUT bitmap ...!-->!-->
Array handling moves forward in OpenGL-ctypes (The goal is flexibility...)
Written by
on
in
Snaking.
Doing a bit more work with OpenGL-ctypes this evening. Mostly focusing on the array datatype handling. Basically what I want to allow is that any number of array-like datatypes can be registered with the system so that they can be passed to (and potentially returned from) functions expecting POINTER( basetype ) arguments.
Also tweaked the ...!-->!-->
Why ctypes for OpenGL? (Since Brian asked...)
Written by
on
in
Snaking.
Brian asked me to explain what benefits I'm expecting from a ctypes version of OpenGL versus the PyOpenGLSWIG version. So, why not post it where everyone can read it (if one person asks, probably 10 want to know)...
* Easier compilation/more robust operation!-->!-->
o Probably 90% of our time in PyOpenGLSWIG is spent on
compilation ...!-->!-->