Drawing

I know in Qbasic there is a way to draw circles and pixels on the screen. I don't remember exactly how, but writing Circle (centerx, centery, radius) would draw a circle as the output.

I tried doing some research before I posted and I came across some information on openGL and DirectX. I couldn't really understand these, and I'm not sure if I'm at the point in my C++ where I should be trying something this complicated.

But - basically, my question is: Is there a simple code in any standard library that will let you draw lines, circles, and pixels?

If you want to keep it really simple and stupid, you can google around for a "modern" version of graphics.c.

Otherwise (and what I recommend) is to use a GUI lib, like GTK+, FLTK, Qt, etc.

Finally, you can go straight to the source: the Win32 API (which is fairly easy) or Xlib (which is not recommended for beginners).


If you want to play with OpenGL (another recommended option), you might want to check out these links:
http://nehe.gamedev.net/
http://www.opengl.org/documentation/specs/glut/spec3/spec3.html
http://www.mathies.com/glfaq/GLToolkitFAQ.html


OpenGL is for single-window, pure-graphics applications, like games and 3d stuff and really cool screensavers, etc.

All the other stuff is for regular applications programming.

Hope this helps.
Topic archived. No new replies allowed.