SDL_Net question
Is it possible to use SDL_Net without initalizing SDL. And if it isn't can I just initalize SDL with something worthless (to me) like timer. And if that isn't possible is there another library with similar functionallity that I can use?
Funny thing you should mention it... I was doing a SDL_Net project and half way through relized I wasn't doing a SDL_Init, but it seemed to run fine. You do need, however, to include the sdl library and use the SDLNet_Init (and SDLNet_Quit i believe)
But no, I don't think you need to actually run SDL_Init :)
But no, I don't think you need to actually run SDL_Init :)
this is from the docs:
SDL_net uses underlying sdl functions like SDL_GetTicks() etc. so it's probably a very good idea to init sdl before sdl_net.
Quote:
int SDLNet_Init()
Initialize the network API.
This must be called before using other functions in this library.
SDL must be initialized before this call.
SDL_net uses underlying sdl functions like SDL_GetTicks() etc. so it's probably a very good idea to init sdl before sdl_net.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement