PDA

View Full Version : Simple graphics library for C?


Jaynte
Jul15-11, 06:16 AM
Hi

Anyone knows a nice and simple graphics library for C (Windows 7) that is not openGL nor GT.

All I want to do is plot pixels on the screen. In a window or directly in the console.

MisterX
Jul15-11, 12:04 PM
You could use GDI.

GetDC (http://msdn.microsoft.com/en-us/library/dd144871%28v=vs.85%29.aspx) to get the device context for the window that you want to draw to

then

SetPixel (http://msdn.microsoft.com/en-us/library/dd145078%28v=vs.85%29.aspx) to set a pixel

Jaynte
Jul15-11, 12:45 PM
Thanx alot!