Jump to content

C++ Best Graphics Library

prolemur

I was going to start off firstly with a cli game, but it is too boring and is very weird to play. I thought I'd throw some graphics at the problem!

 

I want something that is free and full open source so I can't get in trouble for doing anything with it and one that is powerful enough to actually make 2D games that look good and support regular file types like mp3 and .jpg 

Link to comment
Share on other sites

Link to post
Share on other sites

hmm, well you could perhaps try Oxygine....I personally haven't ever tried it, so I can't help too much in how great it is (I was thinking of, but I decided to go with a 3D game instead).

 

Based on the examples they show, I believe it supports png (btw jpeg isn't really used in games...too much processing and causes blurriness).  I don't know about audio support (I am sure one of the examples has sound, and you could just see what they used). *Just read their site, they have an OpenAL sound plugin...it supports ogg (MP3 is a licensed format, so you might not find too many that support this).

 

Anyways you can find the site here http://oxygine.org and the sound plugin here http://oxygine.org/?page_id=53

 

To address your concerns about it being free and Open Source.  It is released under the MIT license http://en.wikipedia.org/wiki/MIT_License (My favorite type), so you can modify and release it commercially, but I believe you have to give some credit (ie copyright notice with the MIT...anyways it is a short license so you could probably read it and see). 

 

 

 

Lastly I will leave it at this http://en.wikipedia.org/wiki/List_of_game_engines

First sort by language, then sort by "2D/3D oriented" and you will be presented with a list that has the C++ and 2D games all together

0b10111010 10101101 11110000 00001101

Link to comment
Share on other sites

Link to post
Share on other sites

Based on your other thread, I would say hold off on trying to add graphics. 

 

Text might suck, but you should focus on the logic of the game and learn programming fundamentals before adding the complexity of a library.

 

If you want to add graphics later, you should keep that in mind while you're writing it. Abstract your interface from your logic. It'll be a learning experience when you do as you'll find where your design succeeded and failed.

 

That said, I would (and do) use SDL.

main(i){for(;i<101;i++)printf("Fizz\n\0Fizzz\bBuzz\n\0%d\n"+(!(i%5)^!!(i%3)*3)*6,i);}

Link to comment
Share on other sites

Link to post
Share on other sites

I'm using SFML for a coursework at the moment, it's not bad, but it's not great either.

As Avratz said, learn the basics of c++ first, then jump onto graphics.

Figure out stuff like functions, classes and pointers before attempting something more advanced.

Link to comment
Share on other sites

Link to post
Share on other sites

if ur looking for something to start of with try Open GL V1.0 (v2.0 is more complex)

Link to comment
Share on other sites

Link to post
Share on other sites

if ur looking for something to start of with try Open GL V1.0 (v2.0 is more complex)

Lol? Good luck making something that looks anything like a game in pure OpenGL on a beginner level.

There are libraries in 2D that are much easier to learn and build upon, like allegro or sfml. It's not about knowing how to properly optimize draw calls at that point, but learning how 2D graphics work, and the basics os stuff like animation, collision and other common mechanics.

GameMaker is a father of games like nidhogg, but it has its own language, and is a closed environment.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×