cocos3d  2.0.0
Instance Methods | List of all members
<CC3FramebufferAttachment> Protocol Reference

#import <CC3RenderSurfaces.h>

Inheritance diagram for <CC3FramebufferAttachment>:
Inheritance graph
[legend]

Instance Methods

(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
 

Additional Inherited Members

- Properties inherited from <CC3RenderSurfaceAttachment>
GLenum pixelFormat
 
CC3IntSize size
 

Detailed Description

An implementation of CC3FramebufferAttachment can be attached to a CC3GLFramebuffer to provide a buffer to which drawing can occur.

This protocol extends the CC3RenderSurfaceAttachment protocol to add the ability to bind the attachment to the framebuffer within the GL engine. Different implementations will supply different types of binding.

Method Documentation

- (void) bindToFramebuffer: (GLuint)  framebufferID
asAttachment: (GLenum)  attachment 

Binds this attachment to the specified framebuffer, as the specified attachment type.

- (void) unbindFromFramebuffer: (GLuint)  framebufferID
asAttachment: (GLenum)  attachment 

Unbinds this buffer from the specified framebuffer, as the specified attachment type, and leaves the framebuffer with no attachment of that type.


The documentation for this protocol was generated from the following file: