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

Subclass of GLScene for working with QC compositions. More...

#import <QCGLScene.h>

Inherits GLScene.

Instance Methods

(void) - useFile:
 Load the QC composition at the passed path. Threadsafe- this method doesn't invoke the QC runtime, instead it creates a VVQCComposition instance for the passed path so you can check out the basic properties of the composition. The QCRenderer/QC runtime doesn't get created until you render a frame (or explicitly create a renderer) More...
 
(void) - prepareRendererIfNeeded
 when you first load a file, the QCRenderer instance is nil (the QC runtime should only be initialized on the same thread it's rendered on, else it will leak resources). by default, the QCRenderer is initialized during rendering- if you reeeeeally want access to the renderer, you can call this method to force creation of the QCRenderer. please be careful with this method- you should only call it on the same thread you'll be using to render the QC composition, and this thread should probably be a RenderThread!
 
(NSString *) - filePath
 the currently loaded file path
 
(VVQCComposition *) - comp
 the VVQCComposition for the currently-loaded file
 
(QCRenderer *) - renderer
 the QCRenderer for the currently-loaded file. this is nil when you first load a file- the QCRenderer will be nil until you tell the scene to render, or explicitly create the renderer via the prepareRendererIfNeeded method
 
- 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 QC compositions.

Method Documentation

- (void) useFile: (NSString *)  p

Load the QC composition at the passed path. Threadsafe- this method doesn't invoke the QC runtime, instead it creates a VVQCComposition instance for the passed path so you can check out the basic properties of the composition. The QCRenderer/QC runtime doesn't get created until you render a frame (or explicitly create a renderer)

Parameters
pan NSString with the full path to a QC composition

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