Advertisement

SDL and Windows

Started by November 02, 2004 11:16 AM
3 comments, last by Squirm 19 years, 10 months ago
hi, i just started learning sdl, it seems super easy...my first question is..how do i get it so the console window doesn't pop up everytime i run my app? and the second question...is sdl fast? I was initially planning on using opengl with sdl for a 2d game...but now..it seems that sdl has everything that i would need to do with my simple 2d game..so should i just stay with sdl? and leave out opengl until 3d stuff comes along, or what? thanks kag1 kgobel at gmail dot com
add the -mwindows switch to the linker parameters
Dolphins - The sharks of the sea.
Advertisement
If you're using gcc (mingw) pass the compiler the -mwindows flag.
Ad: Ancamnia
And if you're using windows add /subsystem:windows to your linker options.

SDL isn't very fast, because it does most things in pure software. The speed is very acceptable for a simply game. Just don't expect 100+ sprites on the screen with alpha blending.
In other words, use OpenGL :)

This topic is closed to new replies.

Advertisement