GLView.h
/* |
Copyright (C) 2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
The OpenGL view. It delegates to the renderer class for drawing. |
*/ |
#import <Cocoa/Cocoa.h> |
#import <QuartzCore/QuartzCore.h> |
class OpenGLRenderer; |
typedef struct _CallbackContext |
{ |
NSOpenGLContext* ctx; |
OpenGLRenderer* renderer; |
} CallbackContext; |
@interface GLView : NSOpenGLView { |
CallbackContext* cbCtx; |
NSOpenGLPixelFormat* pf; |
CVDisplayLinkRef displayLink; |
} |
@end |
Copyright © 2015 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2015-07-08