Tag: c++

  • Song lyrics in C++

    The other day while hacking away on some C++ code and listening to music, something occurred to me: if I’m programming in C++, shouldn’t the music I’m listening to be in the same language? So I took a few verses from various random songs and coded up C++ translations of the lyrics. Here’s what I…

    Read more

  • Accelerated 2D graphics with OpenGL and SDL: part 1

    As some of you know, I’m working on an old-school puzzle game with Hryx. This game makes use of OpenGL’s graphics capabilities, but not for 3D graphics. Nope, the game is entirely two dimensional. So why OpenGL? Because it’s really, really fast on most systems. Much faster than the slowpoke graphics in SDL. This is…

    Read more

  • C++ 2D generic array class

    Recently I found myself writing a templated 2d array class in C++ for a personal project, and I thought I’d share. If you want to learn about 2d arrays or templates in C++, this article should provide a little insight for you. On the other hand, if you’re an experienced C++ developer, you should be…

    Read more

  • C/C++ with Eclipse Galileo on Mac OS 10.6

    Getting Eclipse to compile your C/C++ applications on Linux has always been a breeze.  On Windows, it’s always been hell.  And on Mac, it’s somewhere in between. Here’s what you need to get started: Your Mac OS install DVD has a few optional components that aren’t part of the standard installation.  One of these is…

    Read more