Including PVRShell.h in iOS ViewController

Tagged: 

This topic contains 7 replies, has 3 voices, and was last updated by  dgu 4 years, 10 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #31043

    Dev2rights
    Member

    I am trying to #include the PVRShell as i have done several times previously in other projects in a custom ViewController that is set as a .mm file.

    Though when i come to compile it fails including and compiling the PVRShell.h on the line

    typedef void* (*PFNLoadFileFunc)(const char*, char** pData, size_t &size);

    Though when i include it in the root AppDelegate it compiles fine and i cant see why there is any difference.

    I realize this is more of a C++ and include question but i am quite stumped.

    #36339

    Dev2rights
    Member

    I was causing a transative dependency in my ViewController else where in my project. Mark as answered.

    #36340

    Joe Davis
    Member

    Hi Dev2rights,

    As the original poster, you should be able to mark it as answered. Is this option appearing at the bottom of your latest post?

    Thanks,
    Joe

    #36341

    Dev2rights
    Member

    Hi Joe, i don’t see the “Did this answer the question ?” tag on my own post or own answer.

    #36342

    Joe Davis
    Member

    No problem 🙂

    #36343

    dgu
    Member

    Hello Dev2Rights

    may you describe the step you have done or some source code to do this integration, it will be wonderfull and very helpfull (Christmass Present 🙂 )
    thanks
    regards
    david g
    #36344

    Dev2rights
    Member

    Hi Dgu,

    Apologies if this seems a little bit patronising but have you got the UIViewcontroller model locked to memory ? This is the core iOS fundamental windowing process and is found here:
    Once you have nailed Views and ViewControllers then you will see that the most common method is setting up an EAGL view for rendering OpenGLES onto a CAEGL layer for that view. This can be used to set up your OpenGLES context and any other setup you do. A simple starting point to get a grip of how iOS handles OGLES is to look at the iOS tutorials apple provide:
    #36345

    dgu
    Member

    sperbe thanks !!!!

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