Mercurial > projects > dstep
comparison dstep/corevideo/CVOpenGLTextureCache.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.CVOpenGLTextureCache; | |
8 | |
9 import dstep.corefoundation.CFBase; | |
10 import dstep.corefoundation.CFDictionary; | |
11 import dstep.corevideo.CVBase; | |
12 import dstep.corevideo.CVBuffer; | |
13 import dstep.corevideo.CVImageBuffer; | |
14 import dstep.corevideo.CVOpenGLTexture; | |
15 import dstep.corevideo.CVReturn; | |
16 import dstep.opengl.OpenGL; | |
17 | |
18 struct __CVOpenGLTextureCache; | |
19 | |
20 alias __CVOpenGLTextureCache* CVOpenGLTextureCacheRef; | |
21 | |
22 extern (C) | |
23 { | |
24 extern | |
25 { | |
26 const CFStringRef kCVOpenGLTextureCacheChromaSamplingModeKey; | |
27 const CFStringRef kCVOpenGLTextureCacheChromaSamplingModeAutomatic; | |
28 const CFStringRef kCVOpenGLTextureCacheChromaSamplingModeHighestQuality; | |
29 const CFStringRef kCVOpenGLTextureCacheChromaSamplingModeBestPerformance; | |
30 } | |
31 } | |
32 | |
33 extern (C) | |
34 { | |
35 uint CVOpenGLTextureCacheGetTypeID (); | |
36 CVOpenGLTextureCacheRef CVOpenGLTextureCacheRetain (CVOpenGLTextureCacheRef textureCache); | |
37 void CVOpenGLTextureCacheRelease (CVOpenGLTextureCacheRef textureCache); | |
38 int CVOpenGLTextureCacheCreate (CFAllocatorRef allocator, CFDictionaryRef cacheAttributes, CGLContextObj cglContext, CGLPixelFormatObj cglPixelFormat, CFDictionaryRef textureAttributes, CVOpenGLTextureCacheRef* cacheOut); | |
39 int CVOpenGLTextureCacheCreateTextureFromImage (CFAllocatorRef allocator, CVOpenGLTextureCacheRef textureCache, CVImageBufferRef sourceImage, CFDictionaryRef attributes, CVOpenGLTextureRef* textureOut); | |
40 void CVOpenGLTextureCacheFlush (CVOpenGLTextureCacheRef textureCache, ulong options); | |
41 } |