vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
CIGLScene.h
1 #import <Cocoa/Cocoa.h>
2 #import <OpenGL/OpenGL.h>
3 #import <OpenGL/CGLMacro.h>
4 #import <Quartz/Quartz.h>
5 #import <VVBasics/VVBasics.h>
6 #import "GLScene.h"
7 
8 
9 
10 
11 @protocol CIGLSceneCleanup
12 - (void) cleanupCIGLScene:(id)scene;
13 @end
14 
15 
16 
17 
19 
22 @interface CIGLScene : GLScene {
23  CGColorSpaceRef workingColorSpace;
24  CGColorSpaceRef outputColorSpace;
25  CIContext *ciContext;
26 
27  id <CIGLSceneCleanup> cleanupDelegate; // nil, NOT RETAINED
28 }
29 
31 - (VVBuffer *) allocAndRenderBufferFromImage:(CIImage *)i;
32 - (void) renderCIImage:(CIImage *)i;
33 - (void) renderCIImage:(CIImage *)i inFBO:(GLuint)f colorTex:(GLuint)t;
35 
41 - (void) renderCIImage:(CIImage *)i inFBO:(GLuint)f colorTex:(GLuint)t target:(GLuint)tt;
42 
43 @property (readonly) CGColorSpaceRef workingColorSpace;
44 @property (readonly) CGColorSpaceRef outputColorSpace;
45 @property (readonly) CIContext *ciContext;
46 @property (assign,readwrite) id <CIGLSceneCleanup> cleanupDelegate;
47 
48 @end
VVBuffer represents a buffer- almost always in VRAM as a GL texture or renderbuffer- created and mana...
Definition: VVBuffer.h:134
Wrapper around a GL context with the intent of standardizing the more common render-to-texture operat...
Definition: GLScene.h:34
Subclass of GLScene for working with CoreImage resources. As written, the API renders CIImages to VVB...
Definition: CIGLScene.h:22