Category archives: Snaking
Discussions of programming, particularly of programming Python
Need a better documentation-generation system (Pydoc and pydoc2 just don't cut it...)
Written by
on
in
Snaking.
Spent the full work-day today on OpenGL-ctypes. The glGet* variables are now getting automatically registered. Image types, it turns out, seem to already be registered. I've also started work on making the docstrings more reasonable, little things like including the extension's Overview section in the docstring (so you can tell what the extension is intended ...
Tweaking the auto-generation (More work tomorrow...)
Written by
on
in
Snaking.
Spent the rest of the day on the auto-generation system for producing GL extension wrappers. Mostly I'm looking at parsing the extension definition files and turning them into instructions to do such things as registering glGet* extensions, automatically registering image types for support, that kind of thing. Also tweaked the code so that marking a ...
Eliminating the last required OpenGL-ctypes extension (Still two optional ones...)
Written by
on
in
Snaking.
This morning I decided to eliminate the _strings.so C module from OpenGL-ctypes. This module had a single function which retrieved the data-pointer from a Python string structure. That was done mostly because of things like potentially having a different Python version or a different Python compilation flag resize the PyObject structure header and wanting to ...
Fixed one regression, another discovered (Don't fix unbroken things...)
Written by
on
in
Snaking.
The bug in the array handling for OpenGL-ctypes was due to my trying to be too clever. Oops. Finished running the OpenGL and OpenGLContext test suites. Biggest issues that surfaced were that the nurbs support has been broken somehow :( , and that the OpenGLContext mouse-handling code is accepting far too many events for processing, ...
Something got fixed on my machine (Probably by the gcc and glibc update)
Written by
on
in
Snaking,
Tuxedo.
Running the PyOpenGL GLUT demo "gears.py", which is basically identical to the standard glxgears program, today I get 1430fps on my workstation, (compared to about 1600 for glxgears today). This same machine was getting around 150fps last week (with either program). I'm guessing the complete system rebuild with gcc 4.x and glibc 2.4.x (which was ...
Apparently a regression crept in over the weekend (My lunch-break in testing...)
Written by
on
in
Snaking.
Spent the lunch break working on testing OpenGL-ctypes. Got through all of the PyOpenGL demos, but far more were failing than should have been. It appears I've introduced a bug in array handling at some point and didn't notice it. Grr. Worse, as I was testing in the OpenGLContext area I discovered a bug that ...
Manufacture a bit of time with a bit of sacrifice (OpenGL-ctypes instead of billables...)
Written by
on
in
Snaking.
Decided that I just had to get some work done on OpenGL-ctypes if it's going to come out any time reasonably soon after Python 2.5 final. Accordingly took the day off and worked solely on OpenGL-ctypes. Primary task today was to work on the documentation for developers and contributors. I've posted that (in-process) documentation to ...
OpenGL-ctypes time just doesn't materialise (Though my room is cleaner...)
Written by
on
in
Snaking.
I got a bit of hacking done on OpenGL-ctypes over the weekend, but not the 2+ days I'd hoped for. I started looking seriously at how to make the extension-writing process more automatic and clean. Also began working on the architectural overview and "how to contribute" documents.
We went for a party at Bryan's on ...!-->!-->
What to do with vertex_buffer_objects? (Pushes itself deep into the rest of OpenGL)
Written by
on
in
Snaking.
A few fixes here and there in OpenGL-ctypes, allows a few more of the samples to run properly. Also did some preliminary testing with PyGame-ctypes (seems to work fine with OpenGL-ctypes). Then sat down to work on the ARB vertex_buffer_objects extension. The extension itself is fairly straightforward, but it's the side effects that make it ...
StarPy patches integrated into CVS (Maybe 20 lines of changes...)
Written by
on
in
Snaking.
Taking the lunch-hour here to work on getting the StarPy patches integrated. The changes are fairly minor in terms of new functionality, a few bug fixes and adding a few (new) parameters to AMI originate. I haven't investigated, but I gather the "variables" patch is the exposure of the new api for originate that was ...