A quick note before we begin, whilst this article specifically describes a way of writing cleaner and safer Win32 GDI code in Python, these same techniques could be applied to any corresponding API which requires manual resource management. A task came up recently which required utilising some old Win32 GDI APIs for a legacy application …
Author Archives: EDais
Simulating 16-bit (65536) colour in Photoshop
A task recently came up which required graphic assets in 16-bit RGB 565 format to work with some old legacy embedded hardware. In case you’re not familiar with the terminology, 565 basically refers to the number of bits used to store each colour channel; 5 for the Red and Blue channels, and 6 for the …
Continue reading “Simulating 16-bit (65536) colour in Photoshop”
Making OpenTK Matrix multiplications faster – An optimisation exercise in C#
Real-time graphics code is one of those areas of programming where you can never get enough performance. One such scenario was in an OpenGL application I’d been working on recently, where there was a lot of matrix multiplications going on in the inner core loop of the application. I’d been using the excellent OpenTK library …
Continue reading “Making OpenTK Matrix multiplications faster – An optimisation exercise in C#”
Tiny wings procedural terrain generation
Tiny wings is the casual game phenomenon sweeping the iPhone gaming landscape at the moment, which features a rather interesting procedural terrain generation system giving the game a different look each day. From what I can see the topology of the terrain remains pretty much constant, it’s just the texturing that changes on a daily basis. …
Hello.. is this thing on?..
At a loose end tonight, so on a whim I decided to have a look at setting up a personal blog. After much research (about a minute), I settled on a self hosted wordpress.org solution, which looks pretty neat so I’ll be trialling this for a bit and see how it works out.