Mercurial > projects > dstep
comparison dstep/corevideo/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.corevideo.CVOpenGLBuffer; | |
8 | |
9 import dstep.corefoundation.CFBase; | |
10 import dstep.corefoundation.CFDictionary; | |
11 import dstep.corevideo.CVImageBuffer; | |
12 import dstep.opengl.OpenGL; | |
13 import dstep.opengl.gl; | |
14 | |
15 alias CVImageBufferRef CVOpenGLBufferRef; | |
16 | |
17 extern (C) | |
18 { | |
19 extern | |
20 { | |
21 const CFStringRef kCVOpenGLBufferWidth; | |
22 const CFStringRef kCVOpenGLBufferHeight; | |
23 const CFStringRef kCVOpenGLBufferTarget; | |
24 const CFStringRef kCVOpenGLBufferInternalFormat; | |
25 const CFStringRef kCVOpenGLBufferMaximumMipmapLevel; | |
26 } | |
27 } | |
28 | |
29 extern (C) | |
30 { | |
31 uint CVOpenGLBufferGetTypeID (); | |
32 CVOpenGLBufferRef CVOpenGLBufferRetain (CVOpenGLBufferRef buffer); | |
33 void CVOpenGLBufferRelease (CVOpenGLBufferRef buffer); | |
34 int CVOpenGLBufferCreate (CFAllocatorRef allocator, size_t width, size_t height, CFDictionaryRef attributes, CVOpenGLBufferRef* bufferOut); | |
35 CFDictionaryRef CVOpenGLBufferGetAttributes (CVOpenGLBufferRef openGLBuffer); | |
36 int CVOpenGLBufferAttach (CVOpenGLBufferRef openGLBuffer, CGLContextObj cglContext, uint face, int level, int screen); | |
37 } |