how can I use graphic card instead of CPU when I call SDL functions?
A:
You cannot, SDL is only a software renderer. However, you can use SDL to create a window, catch events and then you can perform your drawing using OpenGL.
If your program is eating 100 % CPU, make sure that you limit the FPS correctly (by adding SDL_Delay to the main loop).
dark_charlie
2010-10-29 14:48:42