Valhalla Legends Archive

Programming => General Programming => Topic started by: iago on April 13, 2003, 11:36 AM

Title: Graphics [c++]
Post by: iago on April 13, 2003, 11:36 AM
To do simple 2d rendering (say, from bmp's or gif's or whatever), what would you recommend for a graphics library?

I just want to play around. :-)
Title: Re:Graphics [c++]
Post by: Eibro on April 13, 2003, 11:44 AM
I recommend SDL: http://www.libsdl.org/ it's platform independant, open source and has tons of examples and add-ons.  A few professional games have already been ported to Linux using it. Also, I've used it in the past so I can help you out.

The only other option I see is DirectDraw 7.
Title: Re:Graphics [c++]
Post by: Skywing on April 13, 2003, 01:42 PM
Quote from: iago on April 13, 2003, 11:36 AM
To do simple 2d rendering (say, from bmp's or gif's or whatever), what would you recommend for a graphics library?

I just want to play around. :-)
Why not just Windows GDI?
Title: Re:Graphics [c++]
Post by: Banana fanna fo fanna on April 13, 2003, 08:11 PM
Because SDL is fast, easy, and multi-platform?
Title: Re:Graphics [c++]
Post by: Skywing on April 13, 2003, 09:20 PM
Quote from: St0rm.iD on April 13, 2003, 08:11 PM
Because SDL is fast, easy, and multi-platform?
Actually, he hasn't specified which platform(s) he needs to support (enlighten us, iago?) - if he's using Win32, GDI would most likely be just fine.  Given that somebody else suggested a Win32 thing, I figured I might as well chime in.
Title: Re:Graphics [c++]
Post by: MrRaza on April 14, 2003, 07:51 AM
I'd help out but i only know how to do some graphics in C.... i suggest going to the library and finding a book on the subject, that's what I did...
Title: Re:Graphics [c++]
Post by: iago on April 14, 2003, 11:52 AM
Quote from: Skywing on April 13, 2003, 09:20 PM
Quote from: St0rm.iD on April 13, 2003, 08:11 PM
Because SDL is fast, easy, and multi-platform?
Actually, he hasn't specified which platform(s) he needs to support (enlighten us, iago?) - if he's using Win32, GDI would most likely be just fine.  Given that somebody else suggested a Win32 thing, I figured I might as well chime in.

I doubt I'll have to go multiplatorm, so Windows works.  :-)