Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

GL Arrogance Cleanup is Significant

There were (and still are) lots of places where PyOpenGL code assumed (assumes) that it is running GL. So far my cleanup efforts mean that on importing e.g. GLES1 you don't actually trigger a load of OpenGL. They also mean that most DLLs are lazy-loaded, something that means e.g. GLUT should no longer load on ...

Continue reading

More consistency in array input/outputs

OpenGL often has situations where an argument is actually an output. PyOpenGL has traditionally wrapped those entry points such that they would be removed from the inputs and returned as an output.  I've just checked in code such that for most PyOpenGL entry points you can use either the Pythonic or the C-ish pattern (i.e. ...

Continue reading

Step 2: Get an amd64-compatible VS 2010

So Python 3.3 and 3.4 require Visual Studio (Express) 2010 to compile extensions.  I already had my machine setup with Visual Studio Express 2008 + the platform SDK to get 32 and 64-bit compilers for Python 2.6 and 2.7, but to release for the 3.x's I needed to get the new compilers.  There is, however, ...

Continue reading

Pygame-hosted EGL + ES1 works

So Pygame based EGL + OpenGL-ES1 context works with PyOpenGL 3.1 under Kubuntu amd64 with MESA EGL/GLES. Yay.

Really do need to get a couple SD cards ordered so I can port to the Raspberry Pi too. I expect that will be a matter of just getting the proper library-names defined in the platform loading ...

Continue reading

PyOpenGL 3.1.0b1 Available for Testing

PyOpenGL and PyOpenGL_accelerate 3.1.0b1 are now up on PyPI.  There's MS Windows 32 and 64-bit installers for the windows-ians. The main "features" planned for the 3.1.0 release (and available in the beta) are:

  • raw wrappers generated from the ARB source XML definitions, this means that it covers a lot more extensions, including GLX, WGL, EGL ...

Continue reading

Step 1: Get Windows Updated

Booted into Windows to get the PyOpenGL-Accelerate release compiled, and started following my standard "update windows, AV definitions, etc" pre-release steps... and Windows Update failed. Lots of fail (and 3 hours of trolling through MS support and trying dozens of different fixes intended to reset/verify/cleanup Windows Update state) later I wound up with some Windows ...

Continue reading

Finally some EGL/GLES in PyOpenGL

I finally have a working demo using EGL and GLES under X11/Mesa (Kubuntu 12.04). I can run the most basic of ES1 and ES2 (as well as GL) tests under an EGL-provided context hosted by python-xlib (i.e. a raw X11 window). There's no guarantee that actual useful work could be done with it, but clearing ...

Continue reading

Voice Dictation Privilege

Apparently I'm blessed with a Voice Dictation friendly accent and tone. I can pretty much use most Voice Dictation systems, including the ones on Android, Dragon Naturally Speaking, and PocketSphinx. The results aren't mind-blowing-ly good, but if it's quiet and I speak clearly and train anything that gets missed, I get reasonable results.

Watching a ...

Continue reading

Django CSRF explicitly doesn't trust HTTP when submitting to HTTPS

I managed to introduce a wonderful little bug in the Django blog site here. I wanted all contributors (those making comments and myself) to use HTTPS, but I didn't want to rewrite the templates for the Zinnia blog entries, so I just naively redirected the comments form to the HTTPS site. CSRF protection in Django explicitly does ...

Continue reading