cocos3d
2.0.0
|
#import <CC3RenderSurfaces.h>
Instance Methods | |
(id) | - initWithPixelFormat: |
(id) | - initWithPixelFormat:andPixelSamples: |
(id) | - initWithSize:andPixelFormat: |
Instance Methods inherited from <CC3FramebufferAttachment> | |
(void) | - bindToFramebuffer:asAttachment: |
(void) | - unbindFromFramebuffer:asAttachment: |
Instance Methods inherited from <CC3RenderSurfaceAttachment> | |
(void) | - replacePixels:withContent: |
(void) | - resizeTo: |
Instance Methods inherited from <CC3Object> | |
(id) | - asWeakReference |
(NSString *) | - fullDescription |
(id) | - resolveWeakReference |
Class Methods | |
(id) | + renderbuffer |
(id) | + renderbufferWithPixelFormat: |
(id) | + renderbufferWithPixelFormat:andPixelSamples: |
(id) | + renderbufferWithSize:andPixelFormat: |
Properties | |
GLenum | pixelFormat |
GLuint | pixelSamples |
GLuint | renderbufferID |
Represents an OpenGL renderbuffer.
CC3GLRenderbuffer implements the CC3FramebufferAttachment, allowing it to be attached to a framebuffer.
This class represents a general off-screen renderbuffer, whose storage is allocated from GL memory. For the on-screen renderbuffer whose storage is shared by the view, use the CC3IOSOnScreenGLRenderbuffer subclass.
- (id) initWithPixelFormat: | (GLenum) | format |
Initializes this instance with the specified pixel format and with one sample per pixel.
See the pixelFormat property for allowable values for the format parameter.
The size of this renderbuffer can be set by invoking the resizeTo: method.
- (id) initWithPixelFormat: | (GLenum) | format | |
andPixelSamples: | (GLuint) | samples | |
Initializes this instance with the specified pixel format and with number of samples per pixel.
See the pixelFormat property for allowable values for the format parameter.
The size of this renderbuffer can be set by invoking the resizeTo: method.
- (id) initWithSize: | (CC3IntSize) | size | |
andPixelFormat: | (GLenum) | format | |
Initializes this instance and allocates off-screen storage space within GL memory for this buffer, sufficient to render an image of the specified size in the specified pixel format.
The size and pixelFormat properties of this instance are set to the specified values. The pixelSamples property is set to one.
See the pixelFormat property for allowable values for the format parameter.
+ (id) renderbuffer |
Allocates and initializes an autoreleased instance with one sample per pixel.
The size and pixel format of this renderbuffer can be set by invoking the resizeTo: method.
+ (id) renderbufferWithPixelFormat: | (GLenum) | format |
Allocates and initializes an autoreleased instance with the specified pixel format and with one sample per pixel.
See the pixelFormat property for allowable values for the format parameter.
The size of the renderbuffer can be set by invoking the resizeTo: method.
+ (id) renderbufferWithPixelFormat: | (GLenum) | format | |
andPixelSamples: | (GLuint) | samples | |
Allocates and initializes an autoreleased instance with the specified pixel format and number of samples per pixel.
See the pixelFormat property for allowable values for the format parameter.
The size of the renderbuffer can be set by invoking the resizeTo: method.
+ (id) renderbufferWithSize: | (CC3IntSize) | size | |
andPixelFormat: | (GLenum) | format | |
Allocates and initializes an autoreleased instance and allocates off-screen storage space within GL memory for this buffer, sufficient to render an image of the specified size in the specified pixel format.
The size and pixelFormat properties of this instance are set to the specified values. The pixelSamples property will be set to one.
See the pixelFormat property for allowable values for the format parameter.
|
readnonatomicassign |
Returns the format of each pixel in the buffer.
The returned value may be one of the following:
|
readnonatomicassign |
Returns the number of samples used to define each pixel.
|
readnonatomicassign |
The ID used to identify the renderbuffer to the GL engine.