v2.0.2
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) - deriveNameFromFramebuffer:asAttachment:
 
(void) - unbindFromFramebuffer:asAttachment:
 
- Instance Methods inherited from <CC3RenderSurfaceAttachment>
(void) - replacePixels:withContent:
 
- 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: (CC3GLFramebuffer *)  framebuffer
asAttachment: (GLenum)  attachment 

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

- (void) deriveNameFromFramebuffer: (CC3GLFramebuffer *)  framebuffer
asAttachment: (GLenum)  attachment 

If this attachment does not have a name assigned yet, it is derived from a combination of the name of the specified framebuffer and the type of attachment.

- (void) unbindFromFramebuffer: (CC3GLFramebuffer *)  framebuffer
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: