View Poll Results: Wats Better? and Ezier

Voters
25. You may not vote on this poll
  • DirectX

    8 32.00%
  • OpenGL

    9 36.00%
  • SDL

    8 32.00%

Dx, Sdl, Open-gl

This is a discussion on Dx, Sdl, Open-gl within the Game Programming forums, part of the General Programming Boards category; Help me out with which 1 of the above is easier to learn, also where can i get the tutorial ...

  1. #1
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294

    Dx, Sdl, Open-gl

    Help me out with which 1 of the above is easier to learn,
    also where can i get the tutorial for it

  2. #2
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361

  3. #3
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    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.

  4. #4
    Registered User 4point5's Avatar
    Join Date
    Oct 2002
    Posts
    44

    Cool

    I vote for DirectX because its the only one I know.
    Don't try so hard. Just let it happen.

  5. #5
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    And I'm going to vote for OpenGL, cause that's the only one I know
    "It always takes longer than you think, even when you take Hofstadter's Law into account."
    -Hofstadter's Law

    Bored? Try my game SpaceWars , made in Allegro and VC++
    or see my new game Redoubt , made in OpenGL and VC++

  6. #6
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    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

  7. #7
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    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.

  8. #8
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    He asked for which one was easier...
    Cmon, there's no way ANY of you can possibly say DirectX or OpenGL

  9. #9
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    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.

  10. #10
    ggs
    ggs is offline
    C > C++ duders ggs's Avatar
    Join Date
    Aug 2001
    Posts
    435
    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

  11. #11
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    Is the game made in SDL mutli-platform, or you have to change the code to make it compatible?

  12. #12
    Christian
    Join Date
    Mar 2002
    Posts
    618
    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

  13. #13
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    so basically drawing a ball on the screen is easier with SDL or is it not?

  14. #14
    ggs
    ggs is offline
    C > C++ duders ggs's Avatar
    Join Date
    Aug 2001
    Posts
    435
    YES! too easy, almost
    .sect signature

  15. #15
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    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.
    My Website

    "Circular logic is good because it is."

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open Gl (FIRST, and SECOND) programs
    By Jeremy G in forum Game Programming
    Replies: 3
    Last Post: 02-16-2003, 04:39 PM
  2. open gl
    By super_monkey in forum Game Programming
    Replies: 8
    Last Post: 10-20-2001, 06:22 PM
  3. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 06:38 PM
  4. open GL
    By super_monkey in forum Game Programming
    Replies: 2
    Last Post: 10-10-2001, 09:31 PM
  5. Direct x, open gl, but wait....what if...whoa, read this!
    By Leeman_s in forum Game Programming
    Replies: 2
    Last Post: 10-08-2001, 04:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21