2008-10-25 17:47:46 +00:00
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
#import <OpenGL/CGLRenderers.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
void cocoaGLCreateApp();
|
|
|
|
|
|
|
|
NSWindow *cocoaGLCreateWindow(int w,int h);
|
|
|
|
|
2008-12-18 21:40:50 +00:00
|
|
|
void cocoaGLSetTitle(NSWindow *win, const char *title);
|
2008-10-25 17:47:46 +00:00
|
|
|
|
|
|
|
void cocoaGLMakeCurrent(NSOpenGLContext *ctx, NSWindow *win);
|
|
|
|
|
|
|
|
NSOpenGLContext* cocoaGLInit(int mode);
|
|
|
|
|
|
|
|
void cocoaGLDelete(NSOpenGLContext *ctx);
|
|
|
|
|
2010-02-12 12:41:53 +00:00
|
|
|
void cocoaGLDeleteWindow(NSWindow *window);
|
|
|
|
|
2008-10-25 17:47:46 +00:00
|
|
|
void cocoaGLSwap(NSOpenGLContext *ctx,NSWindow *window);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|