OpenCVForUnityAppController.mm 597 B

12345678910111213141516171819202122
  1. #import "UnityAppController.h"
  2. #import <TargetConditionals.h>
  3. extern "C" void OpenCVForUnity_UnityPluginLoad(IUnityInterfaces *interfaces);
  4. extern "C" void OpenCVForUnity_UnityPluginUnload();
  5. #pragma mark - App controller subclasssing
  6. @interface OpenCVForUnityAppController : UnityAppController
  7. {
  8. }
  9. - (void)shouldAttachRenderDelegate;
  10. @end
  11. @implementation OpenCVForUnityAppController
  12. - (void)shouldAttachRenderDelegate;
  13. {
  14. UnityRegisterRenderingPluginV5(&OpenCVForUnity_UnityPluginLoad, &OpenCVForUnity_UnityPluginUnload);
  15. }
  16. @end
  17. IMPL_APP_CONTROLLER_SUBCLASS(OpenCVForUnityAppController);