public interface JCGLFramebufferBuilderType
Modifier and Type | Method and Description |
---|---|
void |
attachColorTexture2DAt(JCGLFramebufferColorAttachmentPointType point,
JCGLFramebufferDrawBufferType buffer,
JCGLTexture2DUsableType texture)
Attach the given color texture
texture to the framebuffer that
will be created, at attachment point point . |
void |
attachColorTextureCubeAt(JCGLFramebufferColorAttachmentPointType point,
JCGLFramebufferDrawBufferType buffer,
JCGLTextureCubeUsableType texture,
JCGLCubeMapFaceLH face)
Attach the face
face of the given color cube-map texture texture to the framebuffer that will be created, at attachment point
point . |
void |
attachDepthStencilTexture2D(JCGLTexture2DUsableType t)
Attach the given depth+stencil texture
texture to the
framebuffer that will be created. |
void |
attachDepthTexture2D(JCGLTexture2DUsableType t)
Attach the given depth texture
texture to the framebuffer that
will be created. |
void |
detachColorAttachment(JCGLFramebufferColorAttachmentPointType point)
Detach any existing color attachment at
point . |
void |
detachDepth()
Detach any existing depth attachment (including depth+stencil
attachments).
|
void attachColorTexture2DAt(JCGLFramebufferColorAttachmentPointType point, JCGLFramebufferDrawBufferType buffer, JCGLTexture2DUsableType texture)
Attach the given color texture texture
to the framebuffer that
will be created, at attachment point point
.
The function will replace any existing color attachment at attachment
point point
.
The attachment will be associated with draw buffer buffer
, so
any output written to buffer
will end up in texture
.
point
- The attachment pointbuffer
- The draw buffer that will be associated with the color
attachmenttexture
- The texturevoid attachColorTextureCubeAt(JCGLFramebufferColorAttachmentPointType point, JCGLFramebufferDrawBufferType buffer, JCGLTextureCubeUsableType texture, JCGLCubeMapFaceLH face)
Attach the face face
of the given color cube-map texture texture
to the framebuffer that will be created, at attachment point
point
.
The function will replace any existing color attachment at attachment
point point
.
point
- The attachment pointbuffer
- The draw buffer that will be associated with the color
attachmenttexture
- The textureface
- The cube face, assuming a left-hannded coordinate systemJCGLTextureFormats.isColorRenderable2D(JCGLTextureFormat)
void attachDepthTexture2D(JCGLTexture2DUsableType t)
Attach the given depth texture texture
to the framebuffer that
will be created.
The function will replace any existing depth attachment. This includes individual depth and combined depth/stencil attachments.
t
- The texture.void attachDepthStencilTexture2D(JCGLTexture2DUsableType t)
Attach the given depth+stencil texture texture
to the
framebuffer that will be created.
The function will replace any existing depth attachment. This includes individual depth and combined depth/stencil attachments.
t
- The texture.void detachDepth()
Detach any existing depth attachment (including depth+stencil attachments).
void detachColorAttachment(JCGLFramebufferColorAttachmentPointType point)
Detach any existing color attachment at point
.
point
- The attachment pointCopyright © 2017 <code@io7m.com> http://io7m.com