#import <CC3RenderSurfaces.h>
Properties | |
id< CC3RenderSurface > | pickingSurface |
id< CC3RenderSurface > | viewSurface |
CC3IntPoint | viewSurfaceOrigin |
Properties inherited from CC3SurfaceManager | |
CC3IntSize | size |
Additional Inherited Members | |
Instance Methods inherited from CC3SurfaceManager | |
(void) | - addSurface: |
(void) | - removeSurface: |
(void) | - retainSurface:inIvar: |
Class Methods inherited from CC3SurfaceManager | |
(instancetype) | + surfaceManager |
Manages the render surfaces that are tied to the size of a CC3Layer.
Each CC3Layer contains an instance of this class, and resizes that instance whenever the size of the CC3Layer is changed, which, in turn, resizes all managed surfaces.
Wraps the view surface and picking surface. The viewSurface represents a surface section on the primary on-screen view surface. The picking surface is a (typically) off-screen surface used to render the CC3Scene for node picking.
You can add additional surfaces that should be tied to the size of the CC3Layer. Typically, this may include any post-processing surfaces used to render effects within the CC3Layer. If doing so, you should consider subclassing this class in order to provide convenient property access to the additional surfaces added to your customized CC3Layer's surface manager.
|
readnonatomicretain |
Returns the surface to which rendering for picking should be directed.
If not set directly, this property will be lazily initialized to an off-screen surface with the same size and color format as the surface in the viewSurface property, and with a new non-multisampling and non-stencilling depth buffer.
|
readnonatomicretain |
Returns the surface to which on-screen rendering to the view should be directed.
This surface represents a section on the primary on-screen view surface retrieved from CC3ViewSurfaceManager.sharedViewSurfaceManager.renderingSurface. The bounds of this surface section are determined by the viewSurfaceOrigin and size properties of this instance.
|
readwritenonatomicassign |
The origin of the view surface for the CC3Layer, relative to the OS view.
Changing the value of this property changes the value returned by the viewport property, of the surface in the viewSurface property, which causes rendering to occur only within the section of the OS view surface defined by the viewport property.
The initial value of this property is zero.