Sign in to follow this  
chubbc

Which library to use?

Recommended Posts

chubbc    122
Hi, I am fairly new to both game programming and gamedev.net, first off i would like to congratulate all the people who contribute to this site, its wonderful. I have been programming for a year or so know and playing around with game programming for a few months. I began with C/C++ and then onto Java and python Perl etc. I have written some games in Java, Allegro and SDL on C++ and im am wondering which direction I should take and what library and language I should use. I see many people say to use C++ if u can live with the syntax and understand it, if so should I use SDL/OpenGL? I am looking for a library that can help me learn basic sprite based graphics and then onto 3D graphics. Can you please also link me to any helpful tutorials.

Share this post


Link to post
Share on other sites
Stormtrooper    100
I think going the SDL/OpenGL would be great idea. Its not that hard once you get the basics down, and having SDL take care of the input and window management makes learning OpenGL a lot easier. It will allow you to do simple 2d stuff and let you move onto 3d stuff when your ready without having to change libraries. You could also go the DirectX rout, but I personally like cross platform compatibility.

Here is a SDL/OpenGL tutorial.
http://lazyfoo.net/SDL_tutorials/index.php

Share this post


Link to post
Share on other sites
chubbc    122
Funny you should mention lazy foo as I has seen it and was wondering to it value. OpenGL does graphics but does it do sounds or any of that or do I use SDL for that? I know that I use SDL for threading and timers, also do you know any good OpenGL tutorials preferably aimed at implementing it in SDL.

Share this post


Link to post
Share on other sites
apatriarca    2365
OpenGL only do graphics but you can use SDL for sound. There are also other libraries for sound but I think you can use SDL if you haven’t particular needs.

Share this post


Link to post
Share on other sites
Trenki    345
I would recommend you use SDL as it is very easy to use. You only need 2 lines (omitting error checking) of code to initialize it and create a window which is suitable for OpenGL rendering.
A good resource for OpenGL is the OpenGL redbook. PDFs for version 1.1 can be found using google or maybe via the OpenGL website. If you don't know anything about OpenGL and want something for free this is great. Once you know the basic stuff you can move on to more advanced tutorials.

Share this post


Link to post
Share on other sites
Omid Ghavami    1007
Quote:
Original post by chubbc
I see many people say to use C++ if u can live with the syntax and understand it, if so should I use SDL/OpenGL?


The difficulty of C++ has little to do with syntax and a lot more to do with things like: this, this, this, and this.

Share this post


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

Sign in to follow this