Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Ashbad on February 03, 2011, 07:54:57 pm

Title: What's the best C++ 2D graphics Library?
Post by: Ashbad on February 03, 2011, 07:54:57 pm
I'm thinking of allegro to go with Dev-C++, but is there anything better, though just as simple?  I mean, don't say OpenGL; I don't like having to write 20 lines of code to draw a sprite.
Title: Re: What's the best C++ 2D graphics Library?
Post by: ruler501 on February 03, 2011, 08:01:06 pm
Dark GDK is an OK library if you want to try it. I haven't used it but I've looked at the code it doesn't seem that complicated. Seems to be pretty good also
Title: Re: What's the best C++ 2D graphics Library?
Post by: Ashbad on February 03, 2011, 08:02:35 pm
What I'm mostly going for is a library like Allegro that supports Sounds and Simple bitmaps and stuff, does Dark support this?
Title: Re: What's the best C++ 2D graphics Library?
Post by: ruler501 on February 03, 2011, 08:04:00 pm
I'm not completely sure let me shhow you a link to it. Wait just a second for me to find it please

EDIT: Here you go. It might be 3d though I'm not sure it is supposed to be able to make full out games http://www.thegamecreators.com/?m=view_product&id=2128
Title: Re: What's the best C++ 2D graphics Library?
Post by: Ashbad on February 03, 2011, 08:15:31 pm
Thanks :D

EDIT: this actually looks pretty cool... Thanks for mentioning it ;D
Title: Re: What's the best C++ 2D graphics Library?
Post by: ruler501 on February 03, 2011, 08:17:26 pm
Is that what you wanted I know almost nothing about it it was just a library I had seen downloaded and remembered one day. I've never used it.
Title: Re: What's the best C++ 2D graphics Library?
Post by: Ashbad on February 03, 2011, 08:18:49 pm
It looks actually pretty great.  I bet it's mostly 3D though, and since I'm *considering* making a 2D game to up my knowledge in C++ to where it was a while ago, I'll use allegro for this first game, but... this will definately be used to make my next game, probably in 3D :D
Title: Re: What's the best C++ 2D graphics Library?
Post by: ruler501 on February 03, 2011, 08:24:06 pm
Awesome I'm happy I could help. Just make sure all the features you are wanting to use are in the free version. It would really suck if they were in the pro version.
Can't wait to see your game what will it be about do you think
Title: Re: What's the best C++ 2D graphics Library?
Post by: Ashbad on February 03, 2011, 08:26:01 pm
More of an RPG, like Trio and Niko: Falling, except more advanced, closer to a real zelda game due to no restraints on mem :)  and speed is like 10 Million times faster too

And again, thanks a lot :D
Title: Re: What's the best C++ 2D graphics Library?
Post by: ruler501 on February 03, 2011, 08:29:17 pm
Willl you be starting a thread for your project? I'd like to help out where I can.
(which won't be many places because I know almost no C++ or C and a ot of python) I know I'll help with ideas :hyper:
Title: Re: What's the best C++ 2D graphics Library?
Post by: DJ Omnimaga on February 04, 2011, 12:20:17 am
A PC version of TanF or another RPG would be awesome. Maybe you could even port ROL3? ;D
Title: Re: What's the best C++ 2D graphics Library?
Post by: Tribal on February 05, 2011, 03:30:02 pm
If you have the time to fool around with it, SFML (http://www.sfml-dev.org/) is a pretty good one in my opinion. It doesn't have a extremely large user-base but for the most part it has a nice documentation and the community is rather welcome to questions you may have on it. Personally, I've never used Allegro or SDL so I can't tell you if one is better than the other or what the advantages of one over the other are. Although, coming from other opinions I've found on the web, it looks like the general flow of things based on performance is Allegro < SDL < SFML.

If you decide to try it out, yell at me on IRC or something if you run into problems and I'll help you out the best I can.
Title: Re: What's the best C++ 2D graphics Library?
Post by: matthias1992 on February 05, 2011, 04:41:21 pm
I reccomend using c# and xna game studio.
Title: Re: What's the best C++ 2D graphics Library?
Post by: DJ Omnimaga on February 05, 2011, 11:15:39 pm
Mhmm about XNA one cool thing is that you can make your games for the Xbox 360 in the process, reaching a larger audience. The only issue is that developing for the 360 is not free, unlike for the PC. Does XNA allows for Linux compatibility, by the way? (or at least modifying the source with another software to make it Linux compatible)
Title: Re: What's the best C++ 2D graphics Library?
Post by: TC01 on February 05, 2011, 11:28:18 pm
Mhmm about XNA one cool thing is that you can make your games for the Xbox 360 in the process, reaching a larger audience. The only issue is that developing for the 360 is not free, unlike for the PC. Does XNA allows for Linux compatibility, by the way? (or at least modifying the source with another software to make it Linux compatible)

Through projects like MonoXNA (http://www.monoxna.org/), yes.
Title: Re: What's the best C++ 2D graphics Library?
Post by: TsukasaZX on February 05, 2011, 11:28:24 pm
I would honestly have to say just stick with C++ and Allegro. It's what I'm using to write Yumé: The Eternal Dreams and it's quite simple. C# and XNA are pretty Windows-only in nature. Unless you're doing solely Windows-only development, in which case go for it I guess.

[edit]I stand corrected on the XNA comments... so.... how about this: why rely on framework ports when you can use something that works on all platforms? :D
Title: Re: What's the best C++ 2D graphics Library?
Post by: DJ Omnimaga on February 06, 2011, 02:53:37 am
One thing, however, is that the person should consider ease of use, too. It's good to have cross compatibility and use a more efficient library of any kind, but then if he's so uncomfortable with it that he produces code that runs slower than if he used a less efficient lib, then he might just give up on the project due to the higher workload/difficulty.