homeBlog | Tags | Archives | Projects | Stats | Contact

An Alternative to XML

Feb 28, 2010

2 comments
Popularity:

XML can be overkill or simply cumbersome to edit manually for example when used in configuration files. Or, it may simply be unavailable for the preferred platform. Here’s a great alternative.

Read more...

Creating a Simple GUI from Scratch

Dec 31, 2009

no comments
Popularity:

More often than not, the biggest obstacle for a programmer is adding a GUI to a otherwisely ready application. This probably is because you generally can create a program that inputs and outputs text with a few lines of code in any language.

Read more...

OpenGL, Static Arrays and glMaterialfv

Jul 19, 2009

no comments
Popularity:

I stumbled upon weird behavior of OpenGL: I was setting material properties with glMaterialfv and for some reason this did not change the parameters if done multiple times in succession. I.e. when I drew two versions of the same object on the screen side by side with different material parameters, they both looked the same.

Read more...

Out of Memory?

Aug 19, 2008

no comments
Popularity:

It’s a common practice not to check what malloc() or new returns, since in an ideal world you will never run out of memory and so allocating memory will never fail. With a reasonably sized page file that is mostly true. When using a page file, this wouldn’t be a problem since if there is [...]

Read more...

A Tiny XML Parser

Mar 21, 2008

no comments
Popularity:

While looking for a convenient way for storing some level data for a game I’m working on (more of that later), I came across this small C++ XML parser. Originally, I wanted to stay away from XML or other formats as they are overkill for the simple game format. However, this parser is both small (the Xerces parser is over 50 megabytes!) and easy to use.

Read more...