David's blog

C is the new Assembler

November 01, 2008 00:00

As far back as I can tell, while I have used C, there was never a time when I didn't have to write abstractions to make it easier to see that I am doing something in particular. Every knowledgeable C programmer would know that abstractions tend to make code easier to read, reducing the cost of main...

Read post

RBSP Tree for Lightmap packing

October 19, 2008 00:00

For fun, and for the purpose of making a batch texture that can store characters for fonts, I have created a little tree based off this tutorial by BlackPawn. Basically, the idea here is to partition the original rectangle in such ...

Read post

2D in OpenGL

October 11, 2008 00:00

After some experimentation, I have finally come to a point where I have written some code that does scaling, rotation and alpha on images that I want to display on the screen. Although the concept of drawing 2D in OpenGL is fairly easy to grasp, in that everything is the same except you don't deal w...

Read post

Windows blues

October 06, 2008 00:00

After losing a few games of command and conquer and the computer blue screening when I'm just about to win, I am thoroughly convinced that contrary to their ads, Microsoft has never intended to make life easy for anyone. I swear by my keyboard I will make an OS that is actually reliable and usable b...

Read post

Different versions of MSVC have different versions of STL

September 22, 2008 00:00

Something that I have only recently noticed only after I have used MSVC for a while is that different versions of MSVC use different versions of the C++ standard template library. This isn't a problem, unless you are linking libraries statically that were built with different versions of MSVC. For e...

Read post