public final class R2ImageBuffer extends Object implements R2ImageBufferType
R2ImageBufferType
interface.Modifier and Type | Method and Description |
---|---|
com.io7m.junsigned.ranges.UnsignedRangeInclusiveL |
byteRange() |
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.
|
static R2ImageBuffer |
create(com.io7m.jcanephora.core.api.JCGLFramebuffersType g_fb,
com.io7m.jcanephora.core.api.JCGLTexturesType g_t,
com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType tc,
R2ImageBufferDescription desc)
Construct a new image buffer.
|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g)
Delete the current object.
|
R2ImageBufferDescription |
description() |
R2Texture2DUsableType |
imageTexture() |
boolean |
isDeleted() |
com.io7m.jcanephora.core.JCGLFramebufferUsableType |
primaryFramebuffer() |
com.io7m.jregions.core.unparameterized.sizes.AreaSizeL |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrap
sizeAsViewport
public static R2ImageBuffer create(com.io7m.jcanephora.core.api.JCGLFramebuffersType g_fb, com.io7m.jcanephora.core.api.JCGLTexturesType g_t, com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType tc, R2ImageBufferDescription desc)
g_fb
- A framebuffer interfaceg_t
- A texture interfacetc
- A texture unit contextdesc
- The image buffer descriptionpublic R2Texture2DUsableType imageTexture()
imageTexture
in interface R2ImageBufferUsableType
public com.io7m.jcanephora.core.JCGLFramebufferUsableType primaryFramebuffer()
primaryFramebuffer
in interface R2RenderTargetUsableType<R2ImageBufferDescription>
public com.io7m.jregions.core.unparameterized.sizes.AreaSizeL size()
size
in interface R2RenderTargetUsableType<R2ImageBufferDescription>
public R2ImageBufferDescription description()
description
in interface R2RenderTargetUsableType<R2ImageBufferDescription>
public com.io7m.junsigned.ranges.UnsignedRangeInclusiveL byteRange()
byteRange
in interface com.io7m.jcanephora.core.JCGLResourceSizedType
public boolean isDeleted()
isDeleted
in interface com.io7m.jcanephora.core.JCGLResourceUsableType
public void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g) throws R2Exception
R2DeletableType
delete
in interface R2DeletableType
g
- An OpenGL interfaceR2Exception
- On errorspublic void clearBoundPrimaryFramebuffer(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g) throws R2RendererExceptionFramebufferNotBound
R2RenderTargetUsableType
clearBoundPrimaryFramebuffer
in interface R2RenderTargetUsableType<R2ImageBufferDescription>
g
- A GL interfaceR2RendererExceptionFramebufferNotBound
- If the framebuffer is not
boundCopyright © 2017 <code@io7m.com> http://io7m.com