#import #import #ifdef KINC_METAL #import #import #else #import #import #endif #ifndef KINC_TVOS #import #endif struct kinc_g5_render_target; @interface GLView : UIView { @private #ifdef KINC_METAL id device; id commandQueue; id commandBuffer; id commandEncoder; id drawable; id library; MTLRenderPassDescriptor *renderPassDescriptor; id depthTexture; #else EAGLContext *context; GLuint defaultFramebuffer, colorRenderbuffer, depthStencilRenderbuffer; #endif #ifndef KINC_TVOS CMMotionManager *motionManager; #endif bool hasAccelerometer; float lastAccelerometerX, lastAccelerometerY, lastAccelerometerZ; } - (void)begin; - (void)end; - (void)showKeyboard; - (void)hideKeyboard; #ifdef KINC_METAL - (CAMetalLayer *)metalLayer; - (id)metalDevice; - (id)metalLibrary; - (id)metalQueue; #endif @end