Game Development Community

2D C++ Libraries

by Jeremy Tilton · in General Discussion · 06/27/2003 (10:49 pm) · 7 replies

I missed a step in my education. I sorta went straight from learning text in the console stuff going straight into OpenGL and Direct3D. I need a good API for C++ that is well documented and has lotsa books on it that will allow me to do some nice simple 2D stuff including working with images and some other basic drawing. I wanna get back to the basics and make some simple 2D games while I work on my big project to sort of reinspire me.

#1
06/28/2003 (1:13 am)
Windows only - DirectDraw
crossplatform - SDL
#2
06/28/2003 (2:03 am)
Imho SDL is easier to start on than DirectDraw. Lots and lots of higher level libraries for it too (sprite engines etc.etc.)

www.libsdl.org for your pleasure
#3
06/28/2003 (5:11 am)
You can check out my 2D C++ library CDX for writing games at www.cdxlib.com. It's a series of class wrappers for DirectX that lets you focus on writing the game, not worrying about the graphics engine underneath.
#4
06/28/2003 (9:18 am)
Cool, thanks.
#5
06/29/2003 (12:04 pm)
Use OpenGL in orthographic mode looking straight down z axis, textures on x-y plane rectangles. Vioula, instant 2D.
#6
06/30/2003 (6:31 am)
Www.allegro.cc

Tried and tested, allows for pixel-level manipulation.
#7
06/30/2003 (6:36 am)
You might find this link interesting

Nehe's 2d OpenGL tut

but i agree with tim... SDL is a great choice for cross platform 2D.

[shameless plug]
for a 2d engine with amazing community support ... you cna also try monster studios' Reaction Engine
[/shameless plug]