Merge pull request #10 from gunyarakun/fix-invalid-return
[cocotron.git] / CoreVideo / CVDisplayLink.h
blob9ff1d2f5e928bae33e984356ba903f75ac5685aa
1 #import <Foundation/Foundation.h>
2 #import <CoreVideo/CVBase.h>
3 #import <CoreVideo/CVReturn.h>
4 #import <OpenGL/OpenGL.h>
6 @class CVDisplayLink;
8 typedef CVDisplayLink *CVDisplayLinkRef;
10 typedef CVReturn (*CVDisplayLinkOutputCallback)(CVDisplayLinkRef, const CVTimeStamp *, const CVTimeStamp *, CVOptionFlags, CVOptionFlags *, void *);
12 COREVIDEO_EXPORT CVReturn CVDisplayLinkCreateWithActiveCGDisplays(CVDisplayLinkRef *result);
13 COREVIDEO_EXPORT CVReturn CVDisplayLinkSetOutputCallback(CVDisplayLinkRef self, CVDisplayLinkOutputCallback callback, void *userInfo);
14 COREVIDEO_EXPORT CVReturn CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext(CVDisplayLinkRef self, CGLContextObj cglContext, CGLPixelFormatObj cglPixelFormat);
16 COREVIDEO_EXPORT CVReturn CVDisplayLinkStart(CVDisplayLinkRef self);
17 COREVIDEO_EXPORT CVReturn CVDisplayLinkStop(CVDisplayLinkRef self);
18 COREVIDEO_EXPORT Boolean CVDisplayLinkIsRunning(CVDisplayLinkRef self);
20 COREVIDEO_EXPORT CVDisplayLinkRef CVDisplayLinkRetain(CVDisplayLinkRef self);
21 COREVIDEO_EXPORT void CVDisplayLinkRelease(CVDisplayLinkRef self);