Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/QuartzCore.framework |
Availability | Available in Mac OS X v10.5 and later. |
Declared in | CARenderer.h |
Companion guides |
CARenderer
allows an application to render a layer tree into a CGL context. For real-time output you should use an instance of NSView
to host the layer-tree.
layer
property
bounds
property
For more about Objective-C properties, see “Properties” in The Objective-C 2.0 Programming Language.
The bounds of the receiver.
@property CGRect bounds
CARenderer.h
The root layer of the layer-tree the receiver should render.
@property(retain) CALayer *layer
CARenderer.h
Creates and returns a CARenderer
instance with the render target specified by the Core OpenGL context.
+ (CARenderer *)rendererWithCGLContext:(void *)ctx options:(NSDictionary *)dict
A Core OpenGL render context that is used as the render target.
A dictionary of optional parameters.
A new instance of CARenderer
that will use ctx
as the render target.
CARenderer.h
Adds the rectangle to the update region of the current frame.
- (void)addUpdateRect:(CGRect)aRect
A rectangle defining the region to be added to the update region.
CARenderer.h
Begin rendering a frame at the specified time.
- (void)beginFrameAtTime:(CFTimeInterval)timeInterval timeStamp:(CVTimeStamp *)timeStamp
The layer time.
The display timestamp associated with timeInterval. Can be null.
CARenderer.h
Release any data associated with the current frame.
- (void)endFrame
CARenderer.h
Returns the time at which the next update should happen.
- (CFTimeInterval)nextFrameTime
The time at which the next update should happen.
If infinite, no update needs to be scheduled yet. If nextFrameTime
is the current frame time, a continuous animation is running and an update should be scheduled after an appropriate delay.
CARenderer.h
Render the update region of the current frame to the target context.
- (void)render
CARenderer.h
Returns the bounds of the update region that contains all pixels that will be rendered by the current frame.
- (CGRect)updateBounds
The bounds of the update region..
Initially updateBounds
will include all differences between the current frame and the previously rendered frame.
CARenderer.h
© 2008 Apple Inc. All Rights Reserved. (Last updated: 2008-04-30)