23 lines
619 B
Plaintext
23 lines
619 B
Plaintext
|
#import "UnityAppController.h"
|
||
|
#import <TargetConditionals.h>
|
||
|
|
||
|
extern "C" void OpenCVForUnity_UnityPluginLoad(IUnityInterfaces *interfaces);
|
||
|
extern "C" void OpenCVForUnity_UnityPluginUnload();
|
||
|
|
||
|
#pragma mark - App controller subclasssing
|
||
|
|
||
|
@interface OpenCVForUnityAppController : UnityAppController
|
||
|
{
|
||
|
}
|
||
|
- (void)shouldAttachRenderDelegate;
|
||
|
@end
|
||
|
|
||
|
@implementation OpenCVForUnityAppController
|
||
|
- (void)shouldAttachRenderDelegate;
|
||
|
{
|
||
|
UnityRegisterRenderingPluginV5(&OpenCVForUnity_UnityPluginLoad, &OpenCVForUnity_UnityPluginUnload);
|
||
|
}
|
||
|
@end
|
||
|
|
||
|
IMPL_APP_CONTROLLER_SUBCLASS(OpenCVForUnityAppController);
|