Results 1 to 2 of 2

Thread: render to a texture with dimensions > the egl window surface

  1. #1
    Junior Member
    Join Date
    Feb 2011

    render to a texture with dimensions > the egl window surface

    I have created an egl surface using eglCreateWindowSurface() and I am trying to render a OpenGL ES texture to a framebuffer object. If the desired rendered texture dimensions are larger than the window surface dimensions the rendered texture attached to the FBO is spatially compressed to fit the surface dimensions. I would like the rendered texture to be the dimensions I specified when it was attached to FBO. How do I accomplish this? The only way I have been able to get this to work is to create pBuffer surface using eglCreatePbufferSurface() with the attributes matching the desired size of the rendered texture. Is this my only solution? Thanks

  2. #2

    Re: render to a texture with dimensions > the egl window sur

    You can retrieve the height and width of your window surface by call eglQuerySurface(EGL_WIDTH/EGL_HEIGHT);
    and you can restrict texture size by glViewport() before drawing to non default FBO.

Similar Threads

  1. How to copy content from pixmap surface to window surface
    By mustaf in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 10-05-2008, 09:44 PM
  2. Posting surface to a window...
    By ufocd in forum OpenVG and VGU
    Replies: 2
    Last Post: 05-14-2007, 02:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean