comparison dstep/corevideo/CVOpenGLBufferPool.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.corevideo.CVOpenGLBufferPool;
8
9 import dstep.corefoundation.CFBase;
10 import dstep.corefoundation.CFDictionary;
11 import dstep.corevideo.CVBase;
12 import dstep.corevideo.CVOpenGLBuffer;
13 import dstep.corevideo.CVReturn;
14
15 struct __CVOpenGLBufferPool;
16
17 alias __CVOpenGLBufferPool* CVOpenGLBufferPoolRef;
18
19 extern (C)
20 {
21 extern
22 {
23 const CFStringRef kCVOpenGLBufferPoolMinimumBufferCountKey;
24 const CFStringRef kCVOpenGLBufferPoolMaximumBufferAgeKey;
25 }
26 }
27
28 extern (C)
29 {
30 uint CVOpenGLBufferPoolGetTypeID ();
31 CVOpenGLBufferPoolRef CVOpenGLBufferPoolRetain (CVOpenGLBufferPoolRef openGLBufferPool);
32 void CVOpenGLBufferPoolRelease (CVOpenGLBufferPoolRef openGLBufferPool);
33 int CVOpenGLBufferPoolCreate (CFAllocatorRef allocator, CFDictionaryRef poolAttributes, CFDictionaryRef openGLBufferAttributes, CVOpenGLBufferPoolRef* poolOut);
34 CFDictionaryRef CVOpenGLBufferPoolGetAttributes (CVOpenGLBufferPoolRef pool);
35 CFDictionaryRef CVOpenGLBufferPoolGetOpenGLBufferAttributes (CVOpenGLBufferPoolRef pool);
36 int CVOpenGLBufferPoolCreateOpenGLBuffer (CFAllocatorRef allocator, CVOpenGLBufferPoolRef openGLBufferPool, CVOpenGLBufferRef* openGLBufferOut);
37 }