- November 30, 2012 at 11:52 am #31043
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.November 30, 2012 at 12:14 pm #36339
I was causing a transative dependency in my ViewController else where in my project. Mark as answered.November 30, 2012 at 1:02 pm #36340
As the original poster, you should be able to mark it as answered. Is this option appearing at the bottom of your latest post?
JoeNovember 30, 2012 at 1:05 pm #36341
Hi Joe, i don’t see the “Did this answer the question ?” tag on my own post or own answer.December 7, 2012 at 1:12 pm #36343
Hello Dev2Rightsmay you describe the step you have done or some source code to do this integration, it will be wonderfull and very helpfull (Christmass Present 🙂 )thanksregardsdavid gDecember 7, 2012 at 1:25 pm #36344
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:http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007457Once 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: