Miner49er
Active Member
Hi Folks,
I'm currently hacking together a fantastic game which will hopefully be available for the Pandora (and everything as I'm using SDL and I already have it running on Linux and Windows...).
My problem is that The game is based heavily on a classic amiga gam and I'm currently ripping the graphics, so it's basically 320x200. On my PC this is fine, fullscreen takes me fullscreen, no black borders and stuff. On my little Acer Aspire One laptop, the LCD doesn't seem to want to go into 320x200 mode, so I get a tiny display in the center of the screen!!!
This is annoying.
So, I'm looking at using OpenGL and it's clever texture stuff, to stretch the screen (like ZSNES does, I think). I don't want to resize all the graphics at the moment.
So, does anyone have any ideas how I can convert a plain SDL game to openGL? I mean, i'm currently drawing everything to an SDL_surface - I'm guessing there _should_ be a way to convert that surface into a texture and then 'blit' that texture to the full screen size? Or am I wrong?
Or do I have convert each of my graphic objects into textures and 'blit' them all individually?
Please help me!!
Thanks,
m
I'm currently hacking together a fantastic game which will hopefully be available for the Pandora (and everything as I'm using SDL and I already have it running on Linux and Windows...).
My problem is that The game is based heavily on a classic amiga gam and I'm currently ripping the graphics, so it's basically 320x200. On my PC this is fine, fullscreen takes me fullscreen, no black borders and stuff. On my little Acer Aspire One laptop, the LCD doesn't seem to want to go into 320x200 mode, so I get a tiny display in the center of the screen!!!
This is annoying.
So, I'm looking at using OpenGL and it's clever texture stuff, to stretch the screen (like ZSNES does, I think). I don't want to resize all the graphics at the moment.
So, does anyone have any ideas how I can convert a plain SDL game to openGL? I mean, i'm currently drawing everything to an SDL_surface - I'm guessing there _should_ be a way to convert that surface into a texture and then 'blit' that texture to the full screen size? Or am I wrong?
Or do I have convert each of my graphic objects into textures and 'blit' them all individually?
Please help me!!
Thanks,
m
Last edited by a moderator: