Porting 640x480 game to mobile platforms (hirez display) |
foundtimegames
|
Hi there,
I have a similar problem right now, I just posted it here. Depending on how your rendering is done, I think you may want to use SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear") as well as SDL_RenderSetLogicalSize(sdlRenderer, _width, _height). I think that if you can use OpenGL with SDL, you'll be in good shape. Ryan Gordon (a major contributor on SDL, and professional game-porter) used some OpenGL when he upgraded a port of SDL 1.2 to SDL2. He talks about it here. You can download this book for free as a pdf. Although it is focused on the Android Java API stuff and not SDL, it talks about your exact problem of rendering assets to different resolutions on an Android. Best of luck to you! -Seth |
|||||||||||
|