Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I take C programming beyond the console?

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

like image 765
mclark1129 Avatar asked May 16 '26 13:05

mclark1129


2 Answers

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.

like image 93
caf Avatar answered May 18 '26 02:05

caf


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.

like image 43
ChrisV Avatar answered May 18 '26 02:05

ChrisV



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!