Basic C++ graphics framework?

xitshsif

Senior member
Dec 6, 2004
245
0
0
I'm a competent SDE, but have never done much in the way of graphics programming. I'd like to make a basic game as a project and I'm looking for ideas of how to get started. I'm sure there are tons of C++ libraries out there which do what I need. I just need to be able to get basic keyboard/mouse input, and the ability to manipulate 2D sprites. Anyone had any experience with anything like this?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
Well, if you are sticking to Windows only then DirectX will be your best choice, if you are going for cross platform then you'll want to start digging around in SDL.
 

xitshsif

Senior member
Dec 6, 2004
245
0
0
Yeah, just interested in Windows for now. My only thought regarding DirectX is it may be a little overkill for my needs. But of course, it is one of the industry standards... Any recommendations for getting started? I really enjoy figuring stuff out, but this is one of those things I just don't even know where to start. Most of the books and tutorials I've taken a look at jump straight into rendering 3D stuff. If I could draw a sprite on the screen and move it around with the arrow keys, that'd be plenty enough to make me happy.
 

Train

Lifer
Jun 22, 2000
13,599
90
91
www.bing.com
DirectX has a pretty high entry point. Look into using GDI, after you get good with that, then maybe you would want to look into DirectX. But in a lot of cases, GDI from C++ is a blistgering fast solution, for what you're doing you may never need DirectX
 
Sep 29, 2004
18,656
68
91
Why gaming type graphics and not what you would do for an application ... which is the most likely thing you would do to make money?
 

SunnyD

Belgian Waffler
Jan 2, 2001
32,675
146
106
www.neftastic.com
Originally posted by: xtknight
GDI+ is nice for basic 2D stuff.

This.

Even if you want to work with OpenGL, you'll need to know a bit about GDI. If you want to work with 2D in DirectX, you'll want to learn a bit about GDI.

There's no point if passing up GDI or GDI+ for a 3rd party API.