Mercurial > projects > dstep
comparison dstep/quartzcore/CVOpenGLBuffer.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.quartzcore.CVOpenGLBuffer; | |
8 | |
9 import dstep.corefoundation.CFBase; | |
10 import dstep.corefoundation.CFDictionary; | |
11 import dstep.corevideo.CVOpenGLBuffer; | |
12 import dstep.corevideo.CVImageBuffer; | |
13 import dstep.opengl.CGLTypes; | |
14 import dstep.objc.bridge.Bridge; | |
15 import dstep.objc.objc; | |
16 | |
17 //import bindings = dstep.quartzcore.CVOpenGLBuffer_bindings; | |
18 | |
19 alias CVImageBufferRef CVOpenGLBufferRef; | |
20 | |
21 extern (C) | |
22 { | |
23 extern | |
24 { | |
25 const CFStringRef kCVOpenGLBufferWidth; | |
26 const CFStringRef kCVOpenGLBufferHeight; | |
27 const CFStringRef kCVOpenGLBufferTarget; | |
28 const CFStringRef kCVOpenGLBufferInternalFormat; | |
29 const CFStringRef kCVOpenGLBufferMaximumMipmapLevel; | |
30 } | |
31 } | |
32 | |
33 extern (C) | |
34 { | |
35 uint CVOpenGLBufferGetTypeID (); | |
36 CVOpenGLBufferRef CVOpenGLBufferRetain (CVOpenGLBufferRef buffer); | |
37 void CVOpenGLBufferRelease (CVOpenGLBufferRef buffer); | |
38 int CVOpenGLBufferCreate (CFAllocatorRef allocator, uint width, uint height, CFDictionaryRef attributes, CVOpenGLBufferRef* bufferOut); | |
39 CFDictionaryRef CVOpenGLBufferGetAttributes (CVOpenGLBufferRef openGLBuffer); | |
40 int CVOpenGLBufferAttach (CVOpenGLBufferRef openGLBuffer, CGLContextObj cglContext, uint face, int level, int screen); | |
41 } |