Results 1 to 4 of 4

Thread: Retrieve OpenglES video buffer address...

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    6

    Retrieve OpenglES video buffer address...

    Anyone knows if it is possible to get the address of the openGL video buffer...
    For example, I'd want to make a clear screen copying an image on the OpenglES buffer, then render some polygons and then swap the buffers...

    Thanks..
    Lorenzo

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353
    In general this is not possible. Try submitting the image as a texture and use it to render a textured full-screen quad.

    EGL pixmap surfaces, which are just wrappers around a bitmap type from a native 2D API, can be accessed through that native API. But pixmaps are off-screen buffers and are often not supported.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  3. #3
    Junior Member
    Join Date
    Jun 2007
    Posts
    6
    Thanks Xmas...
    It is as I supposed...

  4. #4
    Member
    Join Date
    Sep 2003
    Location
    Silicon Valley
    Posts
    57
    Quote Originally Posted by Lorenzo
    Thanks Xmas...
    It is as I supposed...
    Accompanying OpenKODE 1.0 will be an EGL extension to map the color buffer of a surface to user space: EGL_KHR_lock_surface. In cases where video memory is directly readable/writeable from user space (and where the implementers are very brave and not overly concerned about the stability or security of their system), it is possible that the map operation will give you a pointer directly into video memory, although in general the map/unmap operation will involve copies.

    This spec is provisional and it will change before OpenKODE 1.0 final is released. But it gives you a flavour of what's coming.
    Jon Leech
    EGL & OpenGL Specification Editor / OpenGL ARB Ecosystem TSG Chair / Khronos API Registrar

Similar Threads

  1. PCI address of mapped OpenCL buffer object?
    By grabner in forum OpenCL
    Replies: 0
    Last Post: 05-03-2012, 02:27 AM
  2. Replies: 2
    Last Post: 07-21-2009, 11:28 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
  •