1. Check out our companion app, Forums for Android! Download from Google Play

OpenGL ES resize problem

Discussion in 'Application Development' started by swobi, Jul 24, 2010.

  1. swobi

    swobi New Member
    Thread Starter
    5

    Jul 24, 2010
    1
    0
    5
    Hi, I'm trying to port a game for Android and I have a question. Is there any possibility to make in OpenGL on phone with display resolution 480x320 framebuffer 640x480, render to it and then present it to display which is 480x320 or 800x480? So that system will resize it? I can of course call glOrtho to let the OpenGL scale to right resolution, but then there are some artifact in 2D graphic. (It's alpha problem when tiling 2d textures and similar problems - so basiccaly render looks right only in right resolution) and resizing textures before render is slow. Can anyone provide some code example which shows how to do it? I quest some egl call will be needed, but I cannot find anythink.
     

    Advertisement

Share This Page

Loading...