iOS OpenGL CAEAGLLayer issue

Hi there,

I am trying to integrate Kamcord into Corona SDK. It seems it is possible as per Kamcord website, and I have contacted them already. What I wanted to confirm with you lovely folks is if that is true.

In their guidelines for custom game engine integration, they require you to access the CAEAGLLayer and OpenGL context. As Corona is using OpenGL for all its rendering, is there some way to access the OpenGL layer it uses via enterprise ? The context and controllers are available and I got those, but the layer is a problem.

They have the following guidelines:

https://github.com/kamcord/kamcord-ios-sdk/wiki/Integrating-Kamcord-into-your-game-engine

If anyone has any ideas would appreciate it.

Much appreciated update from Corona support:

Corona uses GLKit on iOS so knowing that should be everything you need, according to their documentation.

More support help:

To be sure you’ve actually got the correct appViewController, you could grab a reference to it within a method that takes a CoronaRuntine as an argument. See the following:
https://forums.coronalabs.com/topic/28274-accessing-the-viewcontroller-in-mycoronadelegate/

Also, since we’re talking about contexts, this note might be useful to you:
https://docs.coronalabs.com/native/ios/index.html#common-errors

Example of code I am using:

Direct Code example:

    id<CoronaRuntime> runtime = (id<CoronaRuntime>)CoronaLuaGetContext( L );

    UIViewController* appViewController = runtime.appViewController;

Much appreciated update from Corona support:

Corona uses GLKit on iOS so knowing that should be everything you need, according to their documentation.

More support help:

To be sure you’ve actually got the correct appViewController, you could grab a reference to it within a method that takes a CoronaRuntine as an argument. See the following:
https://forums.coronalabs.com/topic/28274-accessing-the-viewcontroller-in-mycoronadelegate/

Also, since we’re talking about contexts, this note might be useful to you:
https://docs.coronalabs.com/native/ios/index.html#common-errors

Example of code I am using:

Direct Code example:

    id<CoronaRuntime> runtime = (id<CoronaRuntime>)CoronaLuaGetContext( L );

    UIViewController* appViewController = runtime.appViewController;