public final class R2GeometryBuffer extends Object implements R2GeometryBufferType
R2GeometryBufferType interface.| Modifier and Type | Method and Description |
|---|---|
R2Texture2DUsableType |
albedoEmissiveTexture() |
com.io7m.jareas.core.AreaInclusiveUnsignedLType |
area() |
void |
clearBoundPrimaryFramebuffer(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Clear the primary framebuffer to render target specific default values,
changing any current render state necessary to achieve this.
|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Delete the current object.
|
R2Texture2DUsableType |
depthTexture() |
R2GeometryBufferDescriptionType |
description() |
com.io7m.junsigned.ranges.UnsignedRangeInclusiveL |
getRange() |
boolean |
isDeleted() |
static R2GeometryBufferType |
newGeometryBuffer(com.io7m.jcanephora.core.api.JCGLFramebuffersType g_fb,
com.io7m.jcanephora.core.api.JCGLTexturesType g_t,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType tc,
R2GeometryBufferDescriptionType desc)
Construct a new geometry buffer.
|
R2Texture2DUsableType |
normalTexture() |
com.io7m.jcanephora.core.JCGLFramebufferUsableType |
primaryFramebuffer() |
Optional<R2Texture2DUsableType> |
specularTexture() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSpecularTextureOrDefaultpublic static R2GeometryBufferType newGeometryBuffer(com.io7m.jcanephora.core.api.JCGLFramebuffersType g_fb, com.io7m.jcanephora.core.api.JCGLTexturesType g_t, com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType tc, R2GeometryBufferDescriptionType desc)
g_fb - A framebuffer interfaceg_t - A texture interfacetc - A texture unit contextdesc - The geometry buffer descriptionpublic R2Texture2DUsableType albedoEmissiveTexture()
albedoEmissiveTexture in interface R2GeometryBufferUsableTypepublic R2Texture2DUsableType normalTexture()
normalTexture in interface R2GeometryBufferUsableTypepublic Optional<R2Texture2DUsableType> specularTexture()
specularTexture in interface R2GeometryBufferUsableTypepublic R2Texture2DUsableType depthTexture()
depthTexture in interface R2GeometryBufferUsableTypepublic com.io7m.jcanephora.core.JCGLFramebufferUsableType primaryFramebuffer()
primaryFramebuffer in interface R2RenderTargetUsableType<R2GeometryBufferDescriptionType>public com.io7m.jareas.core.AreaInclusiveUnsignedLType area()
area in interface R2RenderTargetUsableType<R2GeometryBufferDescriptionType>public R2GeometryBufferDescriptionType description()
description in interface R2RenderTargetUsableType<R2GeometryBufferDescriptionType>public com.io7m.junsigned.ranges.UnsignedRangeInclusiveL getRange()
getRange in interface com.io7m.jcanephora.core.JCGLResourceSizedTypepublic boolean isDeleted()
isDeleted in interface com.io7m.jcanephora.core.JCGLResourceUsableTypepublic void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
throws R2Exception
R2DeletableTypedelete in interface R2DeletableTypeg - An OpenGL interfaceR2Exception - On errorspublic void clearBoundPrimaryFramebuffer(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
throws R2RendererExceptionFramebufferNotBound
R2RenderTargetUsableTypeclearBoundPrimaryFramebuffer in interface R2RenderTargetUsableType<R2GeometryBufferDescriptionType>g - A GL interfaceR2RendererExceptionFramebufferNotBound - If the framebuffer is not
boundCopyright © 2016 <code@io7m.com> http://io7m.com