I’v been testing SDL some time, but found GLFW now. It seems to be very good. So is there any reason to change now to use GLFW or not to use GLFW?
the change really is easy, I program in OpenGL.
What are the pros and cons using SDL or GLFW?
I found that GLFW has much easier and better gl window initialization:
int glfwOpenWindow( int width, int height,
int redbits, int greenbits, int bluebits,
int alphabits, int depthbits, int stencilbits,
int mode )
I think SDL style is not as elegant:
SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
SDL_SetVideoMode( ScreenWidth, ScreenHeight, ScreenBPP, videoFlags );
GLFW also has very accurate timer (RDTSC). SDL not, or has it?
What do you think?