vvopensource
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
Instance Methods
CIGLScene Class Reference

Subclass of GLScene for working with CoreImage resources. As written, the API renders CIImages to VVBuffers (typically textures of some sort), since this seems to be the easiest way to work with CI resources. Can be easily modified to render directly in a view. More...

#import <CIGLScene.h>

Inherits GLScene.

Instance Methods

(VVBuffer *) - allocAndRenderBufferFromImage:
 Allocates a VVBuffer for a GL texture at the current size of this scene, then renders the passed CIImage into this texture.
 
(void) - renderCIImage:inFBO:colorTex:target:
 this is the more low-level method for rendering a CIImage into explicitly-provided GL resources More...
 
- Instance Methods inherited from GLScene
(id) - initWithSharedContext:
 Init an instance of GLScene using the passed shared context.
 
(id) - initWithSharedContext:sized:
 Init an instance of GLScene using the passed shared context. The GLScene will automatically be configured to render at the passed size.
 
(id) - initWithSharedContext:pixelFormat:
 Init an instance of GLScene using the passed shared context and pixel format.
 
(id) - initWithSharedContext:pixelFormat:sized:
 Init an instance of GLScene using the passed shared context and pixel format. The GLScene will automatically be configured to render at the passed size.
 
(VVBuffer *) - allocAndRenderABuffer
 Allocate a VVBuffer of the appropriate size, renders into this buffer, and then return it. Probably the "main" rendering method.
 
(void) - renderInMSAAFBO:colorRB:depthRB:fbo:colorTex:depthTex:target:
 This is the low-level rendering method- if you want to fool around with MSAA or build a leaner interface, you'll probably want to use this. More...
 
(void) - setClearNSColor:
 Set the clear color from the passed NSColor.
 
(void) - setClearColor:
 Set the clear color from the passed array of GLfloats.
 
(void) - setClearColors::::
 Set the clear color from the passed color values.
 

Additional Inherited Members

- Class Methods inherited from GLScene
(NSMutableArray *) + gpuVendorArray
 Returns an array of the GPUs currently accessible by the renderer accessible being used with this process.
 
(BOOL) + integratedGPUFlag
 Returns a YES if you're using an integrated GPU.
 
(BOOL) + nvidiaGPUFlag
 Returns a YES if you're using an NVIDIA GPU.
 
(GLuint) + glDisplayMaskForAllScreens
 Returns a GL display mask that encompassess all your screens.
 
(NSOpenGLPixelFormat *) + defaultPixelFormat
 Returns a default NSOpenGLPixelFormat instance. If you don't explicitly set a pixel format when creating your instances of GLScene (and its subclasses), this is the pixel format that will be used.
 
- Properties inherited from GLScene
NSSize size
 Set the size at which this scene should render.
 
id renderTarget
 Every time this scene renders, the "renderSelector" is called on "renderTarget".
 
SEL renderSelector
 Every time this scene renders, the "renderSelector" is called on "renderTarget". You put your drawing code in the "renderSelector".
 

Detailed Description

Subclass of GLScene for working with CoreImage resources. As written, the API renders CIImages to VVBuffers (typically textures of some sort), since this seems to be the easiest way to work with CI resources. Can be easily modified to render directly in a view.

Method Documentation

- (void) renderCIImage: (CIImage *)  i
inFBO: (GLuint)  f
colorTex: (GLuint)  t
target: (GLuint)  tt 

this is the more low-level method for rendering a CIImage into explicitly-provided GL resources

Parameters
ithe CIImage you wish to render to a GL resource
fthe name of the fbo to which we'll be attaching the gl resources you want to render into
tthe name of a GL texture that will be used as a color attachment to FBO f
ttthe texture target of 't' (GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_EXT)

The documentation for this class was generated from the following files: