Results 1 to 2 of 2

Thread: Render to texture with native API

  1. #1
    Junior Member
    Join Date
    Mar 2007

    Render to texture with native API


    I want to do the following:

    -> Render to a bitmap that is 512x512 pixel in size and use this bitmap as a texture in OpenGL ES without having to call glTexImage2D each time the bitmap changes.
    -> I want to access the bitmap via a pointer, so I can set the pixel by myself and I do not have to use GDI or any other 2D-API.

    I think I have to use a pixmapSurface to be able to access the buffer and eglBindTexture... But I am not able to create a pixmapSurface. Maybe because my window with its associated WindowSurface that I use for the OpenGL drawing has a different size than 512x512? But I do not want them to match...

    Thanks in advance for the help.

  2. #2
    That won't work.

    The only surfaces you can bind as textures are PBuffers, and you don't get a pointer to their surface memory.

    Infact you don't get pointers to any kind of surface memory using EGL or OpenGL/ES.

Similar Threads

  1. Render to texture
    By debinair in forum OpenGL ES
    Replies: 1
    Last Post: 04-23-2012, 05:26 AM
  2. Render to texture
    By miketyson27 in forum OpenGL ES
    Replies: 1
    Last Post: 05-18-2009, 01:58 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