views:

177

answers:

4

I'm trying to learn some graphics programming using C. What would be the best way for a beginner to start? I'd like to how to make programs that use graphics and images that can be run directly from a command line prompt, and don't rely on a windowing system like X to execute.

Thanks,

Mike

+5  A: 

Look into libsdl - Simple DirectMedia Layer. Although on Linux it can use X11 for displaying output, it can also directly use a framebuffer device. It's designed to be simple for pixel-bashing game-type programming, and supports a wide variety of platforms.

caf
I'll check it out, thanks!
Mike C
+3  A: 

There's also Allegro if you're not a fan of SDL. It's somewhat more fully-featured for simple vector graphics; SDL is mainly a cross-platform framebuffer until you add extension libraries.

ChrisV
+2  A: 

Learn some GUI toolkit like Qt or GTK, this way you will make modern GUI applications.

Xolve
he specifically said he didn't want to require a windowing system like X
Jeremy Wall
+2  A: 

Check out the FLTK GUI toolkit. It is small and easy to learn.

Vijay Mathew