Teen Programmers Unite  


Return to forum top

C++ Graphics Options

Posted by regretfuldaydreamer [send private reply] at March 26, 2003, 05:32:19 PM

What are my options for making graphics in C++

- Preferably I'm looking for something very simple, a libary that allows full screen usage and only has simple commands like drawing pixels, lines, general polygons, and allows you to capture and put certain areas of the screen - basically something like QBasics graphics capabilitys only in C++
- I'm not looking for a 3D graphics libary, like OpenGl or DirectX (DirectX is some form of graphics libary, right?)
- If no such C++ (or C) libary exists, what are alternatives in other languages?

Posted by Neumann [send private reply] at March 26, 2003, 06:44:00 PM

I was going to suggest some other simpler language but I thought that it's probably not what you are looking for.

SDL (http://www.libsdl.org) is a very simple open-source graphic library used to do multi-platform graphic programs. The bad thing: it's in fact too simple and it doesn't include all the functionnalities you are looking for, but if you look in the "Libraries" section of LibSDL.org download page, you may find some usefull stuff.

SDL also has interface for many languages (SML being one!).

Posted by Neumann [send private reply] at March 26, 2003, 06:48:47 PM

I suggest you have a look at:


Posted by CodeRed [send private reply] at March 27, 2003, 02:24:16 AM

Learn OGL

Posted by CViper [send private reply] at March 27, 2003, 06:21:38 AM

DirectX is a collection of librarys, Direct3D is the 3D graphics package, DirectSound is for sound etc etc.

You could look at DirectDraw, although it's a cumbersome way to do graphics - no built-in functions for anything but blitting, clipping and drawing pixels (i.e. no line drawing, no poly's ...). I think MS even decided to discontinue DirectDraw (starting with DirectX 8).

Posted by RedX [send private reply] at March 27, 2003, 10:03:00 AM

If you're using visual C++. Check out www.talula.demon.co.uk/allegro/

Allegro is a libray for graphics, sound and whatnot. It's very easy to use.

You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.