I'm starting to make a RTS game(DirectX). Do I really need it or not? Can anyone explain how it works?
I'm starting to make a RTS game(DirectX). Do I really need it or not? Can anyone explain how it works?
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!"
You can use DirectX with other multiplatform libraries like glut or glfw but it will only work on windows despite the windowing being easier.
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.However, using DirectX ensures your game will only run on Windows, and you must use the win32 API.
Or you could just use DXUT. In true form, Microsoft has to clone everything they see - now they have cloned GLUT.
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.
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.