Access to EAGLContext from PVRShell

This topic contains 3 replies, has 2 voices, and was last updated by  richardh 5 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30986

    richardh
    Member

    I am working on an application that utilizes the CVOpenglESTextureCache API from iOS 5.  When using this one has to pass in a reference to a EAGLContext to initially create the TextureCache.

    Is there a way to get a pointer to the EAGLContext from PVRShell. Its my preference to get a from this higher level of abstraction instead of “gutting” out the actual SDK.

    If its not possible I was also entertaining the possibility of creating an additional context dedicated for the TextureCache. I just don’t know how this would impact performance.

    Thanks…

    #36179

    richardh
    Member

    @Joe Davis or @tobias

    Any thoughts on this?

    thanks….

    #36180

    Arron
    Member

    Hi,

    You can use the static Objective-C function [EAGLContext currentContext] which will return you a pointer to the current EAGLContext, as initialised in the shell.
    Best regards.
    #36181

    richardh
    Member

    Thanks  Arron…

    I’m somewhat laughing at myself.. I can tell I have used  setCurrentContext so many times that I would never think I could access itLOL


Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.