Help me out with which 1 of the above is easier to learn,
also where can i get the tutorial for it
DirectX
OpenGL
SDL
Help me out with which 1 of the above is easier to learn,
also where can i get the tutorial for it
All of your answers can be found here.
Btw, there is no real argument for which API is better than the other. It's a matter of opinion, and the game being created. If you wanted to just create a basic 2D game, then Allegro would be your best. If you wanted a full-fledged 3D game, then I would say either OpenGL or DirectX. But remember that OpenGL is only a graphics library, whereas DirectX, SDL, and Allegro are complete game libraries. OpenGL can be used under SDL and Allegro, though, so you can use the graphic routines of OpenGL under SDL or Allegro.
EDIT: Also, DirectX is for Windows only, but DirectX is still very widely used. OpenGL and DirectX are the two most used by game companies.
Last edited by TechWins; 11-11-2002 at 07:00 PM.
I vote for DirectX because its the only one I know.
Don't try so hard. Just let it happen.
Whats better? and easier?
Umm, which one do you want? The best? The easiest? Or do you mean you want the one with the best ratio? I have no clue what you are asking! DirectX and OpenGL are both very powerful API's. I don't know about SDL i've never used it. I did hear it was really easy to learn though. DirectX and OpenGL are both probably more complicated to learn than SDL. Good luck.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
Thanks for those links. I decided to check t out so I clicked the first one now I have downloaded the full tutorial and it looks really cool. Thanks again.
He asked for which one was easier...
Cmon, there's no way ANY of you can possibly say DirectX or OpenGL
But he, also, asked for which one is better. It all depends on the situation for which one is better and easier. Hey if you're creating a 3D game then wouldn't DirectX or OpenGL be easier than SDL? There is no clear cut this API is better than the other one in all situations.
SDL has direct OpenGL support, with SDL_OpenGlFunctionName, etc. It can't hurt to learn it - it took a weekend to get a simple space game running, starting from scratch. So, hey there's simplicity and power. Why not use it?
.sect signature
Is the game made in SDL mutli-platform, or you have to change the code to make it compatible?
The gl header files are located in diffent areas on diffent Operating Systems
and Windows requires you to include windows.h
also there a few things you need to change bassed on your compiler.
Your actual code, nope it stays the same.
I shall call egypt the harmless dragon
-Isaiah 30.7
so basically drawing a ball on the screen is easier with SDL or is it not?
I have had some experience with all three API's, and after using all three of them, I must say that I really love SDL a lot.
It is a fast and simple API, yet it is very powerful. It also is able to implement OpenGL very easily if you want to extend to 3D graphics. It is by far my favorite and the easiest to learn.