Do I really need to use "SDL or Allegro"?

This is a discussion on Do I really need to use "SDL or Allegro"? within the Game Programming forums, part of the General Programming Boards category; I'm starting to make a RTS game(DirectX). Do I really need it or not? Can anyone explain how it works?...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    California
    Posts
    3

    Do I really need to use "SDL or Allegro"?

    I'm starting to make a RTS game(DirectX). Do I really need it or not? Can anyone explain how it works?

  2. #2
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    If you're planning on making a game in DirectX, then no, you won't need SDL/Allegro. However, using DirectX ensures your game will only run on Windows, and you must use the win32 API. This approach is a lot harder then using an API designed for making games (SDL/Allegro). If this game is 2D, and it's your first game, I would choose one of those two APIs.
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    You can use DirectX with other multiplatform libraries like glut or glfw but it will only work on windows despite the windowing being easier.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    However, using DirectX ensures your game will only run on Windows, and you must use the win32 API.
    You will only use the API to setup your application message pump, window, etc. After that you will want to avoid the API like the plague.

  5. #5
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Or you could just use DXUT. In true form, Microsoft has to clone everything they see - now they have cloned GLUT.

  6. #6
    Registered User ChJees's Avatar
    Join Date
    Jul 2007
    Location
    Sweden, Sundsvall
    Posts
    5
    You do not really have to use SDL or Allegro, those Libraries just makes the life easier for you. You do not have to reinvent the wheel everytime :P.

  7. #7
    Registered User CreatedByShadow's Avatar
    Join Date
    Jan 2006
    Posts
    24
    The only reason I can see why you would use Win32 API, is if you're solely programming it for windows. But nowadays, cross-platform is the way to go.

    I've never used Allegro, so I would have to vouch for SDL.

  8. #8

    Join Date
    May 2005
    Posts
    1,041
    Quote Originally Posted by Bubba View Post
    You will only use the API to setup your application message pump, window, etc. After that you will want to avoid the API like the plague.
    Yeah, pretty much.

    If you don't use SDL or Allegro or some other API you have to implement the graphics yourself, and it'll run slower. So, the answer is, realistically yes you do need to use one of these.
    I'm not immature, I'm refined in the opposite direction.

Popular pages Recent additions subscribe to a feed

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