I'm starting a little RTS game with SDL and here are some questions:
- I work with small sprites, is there a way of displaying the screen x2 with scanlines ? I tried zooming it with rotozoom but it slows down the game and I would like to avoid scaling my sprites by hand.
- How can I switch
between fullscreen and windowed while
running ? I found the
SDL_WM_ToggleFullScreen
function but it doesn't seems to work on Windows according to SDL doc. - In order to put my own cursor I load a sprite with my pointer and
make it follow the mouse. But I would
also like to lower the framerate with
SDL_Delay
and doing so makes the pointer movements not smooth. The SDL cursor doesn't seemed influenced by the application framerate is it a better solution to use it and if so, is there a way of using a picture instead of a weird mask ? - Is there a better way of limiting framerate ?
- How can I tinte a surface (like with
draw_lit_sprite
in Allegro)