Pelles C forum

C language => Beginner questions => Topic started by: Netherus on April 13, 2012, 05:51:07 AM

Title: Simple graphics
Post by: Netherus on April 13, 2012, 05:51:07 AM
I just want to make a simple meandering graphics pixel. IS there a graphics.h I can use? Is OpenGL what I need? Are there any samples?

Thanks!
Title: Re: Simple graphics
Post by: Stefan Pendl on April 13, 2012, 08:52:43 AM
Check out the documentation of GDI and GDI+ at MSDN, which are the native graphics interfaces for Windows.

There are other graphics frameworks like SDL, so a search of the forum for "graphics" should get you some hits ;)
Title: Re: Simple graphics
Post by: CommonTater on April 13, 2012, 09:19:49 AM
In addition to what Stephan says (which is excellent advice, btw) you should know that windows since 2000 has had very little support for console mode graphics... Since direct access to video hardware is no longer allowed it's all become GUI mode stuff.  So depending on your expertise you may have a bit of a road to travel here... first learing Windows API programming then working GDI graphics.

In case you haven't been there yet there's an excellent Windows API starter's tutorial at...

http://www.winprog.org/tutorial/

Title: Re: Simple graphics
Post by: Netherus on April 14, 2012, 02:46:49 AM
Thanks guys!  :)