Log in

View Full Version : Basic Graphics In C++


The Niles
29-04-2005, 03:06 PM
I am learning how to program in this language but the only things I have found are some very poor tutorials about Open GL and DirectX. I don't want to use either (for reasons of platform compatability) and want to know the basics of programming with graphics in C++. Who can help?

Data
29-04-2005, 03:11 PM
you need a library to do graphics. as c++ doesn;t come with it by default.

I suggest libsdl (www.libsdl.org).

it's quite simple to do graphics that way.
You just get a virtual screen on which you can write data.

Kon-Tiki
29-04-2005, 03:29 PM
I've meddled around with doing it the 'old' way ages ago, by switching screen modes... screen 13 or 16, I believe it was. It's risky and hard as hell. I once forgot to go back from that different screen mode and when exiting my program, the comp crapped up. Didn't even have any graphics in it yet, cause I don't know how to turn bitmaps into code :whistle:

The Niles
29-04-2005, 03:31 PM
Thanks Data. I see that it can be used even with WindowsCE which is just what I want.

chickenman
06-05-2005, 09:51 PM
Some things that may help...

Irrlicht engine (http://irrlicht.sourceforge.net/index.html)
A very fast 3D engine that also can be used to make GUI's very easy to use, also has support for images, models, quake maps, sound \ music and a number of other things including some physics engines.

GTKMM (http://www.gtkmm.org/)
A C++ interface for the GTK+ library used to make GUI's.

DevPaks.org (http://devpaks.org/)
A number of good librarys ;)

Open Scene Graph (http://www.openscenegraph.org/)
A very very nice looking 3D game \ graphics engine :P

Hope this helps :D

The Niles
07-05-2005, 04:57 PM
That does all look great but unfortunatly WAY above my level of expertise. Thanks anyway and maybe someone else will have some use for this.

robotangel
13-05-2005, 07:20 PM
If you want to do more, you can use OpenGL instead. It's aviable for a lot of platforms, too.

NrmMyth
13-05-2005, 08:44 PM
Originally posted by robotangel@May 13 2005, 09:20 PM
If you want to do more, you can use OpenGL instead. It's aviable for a lot of platforms, too.
He said that even these were above his expertise.

robotangel
13-05-2005, 11:12 PM
Yes, but what i meant is he said "(for reasons of platform compatability)" and i meant that opengl is aviable for a lot of different platforms.

Yes, i know what he said, don't hit me :tomato:

;-)

NrmMyth
16-05-2005, 05:37 PM
So does SDL.

robotangel
17-05-2005, 01:10 PM
Yes, you've won. :bye:

NrmMyth
18-05-2005, 06:07 PM
Now i'm very happy. :eeeeeh:

LOL

robotangel
19-05-2005, 12:52 PM
Not everybody win aganist me. :D

Data
19-05-2005, 01:08 PM
in fact from sdl you can call opengl as well.

Mr.Modem
19-05-2005, 02:05 PM
Yep SDL is the best thing for 2d. I love it. It's very popular and many projects uses it (DosBox, ScummVM for example) because of its high platform compatibility.

NrmMyth
19-05-2005, 06:02 PM
Originally posted by Data@May 19 2005, 03:08 PM
in fact from sdl you can call opengl as well.
Muah ha ha ha!
Now my victory is even bigger! :evil:
















:crazy: :crazy: :crazy: