×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    24

    How to flush opengles surface to window

    I would like to render an opengles surface half the size of the actual resolution (for example for the high resolution of the n97)

    So i would like to render to a surface of 320x180 and flush it to an eglSurface of 640x360 of the n97.

    All examples of opengles i have used so far use the complete window and changing the viewport resizes the output. Which function must i use to blit the result to the Symbian Window? I have used win32 blitting for my games before and this has been accomplished. I cannot find the Symbian equivalent, and i do no know how to make opengles render to a seperate buffer instead of to the bound window.

    How can this be accomplished?

    Sincerely,

    Ben

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    12

    Re: How to flush opengles surface to window

    have you tried using glViewport

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    24

    Re: How to flush opengles surface to window

    Hello,

    glViewport actually makes the area drawn smaller. I need to render a scene at a small resolution and then clamp it to the extents of the window.

    lets say a same situation would happen when you have a pc with a res of 1024x768, but you run the opgl game in 640x480 mode. Still the image is fullscreen. This is what i want to accomplish.

    Thanks,

    Ben

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    24

    Re: How to flush opengles surface to window

    Used pixmap and akn bitmap recale to make an image to blit to the screen. Now i can render to 200x200 viewport and then upscale to screen size.

Similar Threads

  1. Copying content from Pixmap surface to window surface
    By mustaf in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2009-01-15, 06:58
  2. Need help on window server session
    By gigglie in forum Symbian
    Replies: 0
    Last Post: 2008-05-03, 09:57
  3. EGL window surface not fullscreen
    By storsjo in forum Symbian Media (Closed)
    Replies: 17
    Last Post: 2007-01-02, 08:14
  4. Problem Creating Window Using RWindow and putting More controls on it
    By er_gps212 in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-28, 06:22
  5. About window views
    By thodime_guru in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-17, 18:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×