Conforms to CC3RenderSurfaceAttachment
Declared in CC3RenderSurfaces.h

Overview

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.

Instance Methods

bindToFramebuffer:asAttachment:

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

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

Declared In

CC3RenderSurfaces.h

deriveNameFromFramebuffer:asAttachment:

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)deriveNameFromFramebuffer:(CC3GLFramebuffer *)framebuffer asAttachment:(GLenum)attachment

Declared In

CC3RenderSurfaces.h

unbindFromFramebuffer:asAttachment:

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

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

Declared In

CC3RenderSurfaces.h