UnityAppController+Rendering.h 528 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "UnityForwardDecls.h"
  3. #include "UnityAppController.h"
  4. #include "UnityRendering.h"
  5. @interface UnityAppController (Rendering)
  6. - (void)createDisplayLink;
  7. - (void)repaintDisplayLink;
  8. - (void)destroyDisplayLink;
  9. - (void)repaint;
  10. - (void)selectRenderingAPI;
  11. @property (readonly, nonatomic) UnityRenderingAPI renderingAPI;
  12. @end
  13. // helper to run unity loop along with proper handling of the rendering
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. void UnityRepaint();
  18. #ifdef __cplusplus
  19. } // extern "C"
  20. #endif