public class FloatFrameBuffer extends FrameBuffer
FrameBuffer variant backed by a float texture.buffers, colorTexture, defaultFramebufferHandle, defaultFramebufferHandleInitialized, depthbufferHandle, depthStencilPackedBufferHandle, format, framebufferHandle, GL_DEPTH24_STENCIL8_OES, hasDepth, hasDepthStencilPackedBuffer, hasStencil, height, stencilbufferHandle, width| Constructor and Description |
|---|
FloatFrameBuffer(int width,
int height,
boolean hasDepth)
Creates a new FrameBuffer with a float backing texture, having the given dimensions and potentially a depth buffer attached.
|
| Modifier and Type | Method and Description |
|---|---|
protected Texture |
createColorTexture()
Override this method in a derived class to set up the backing texture as you like.
|
protected void |
disposeColorTexture(Texture colorTexture)
Override this method in a derived class to dispose the backing texture as you like.
|
attachFrameBufferColorTexture, unbindbegin, bind, build, clearAllFrameBuffers, dispose, end, end, getColorBufferTexture, getDepth, getDepthBufferHandle, getDepthStencilPackedBuffer, getFramebufferHandle, getHeight, getManagedStatus, getManagedStatus, getStencilBufferHandle, getWidth, invalidateAllFrameBuffers, setFrameBufferViewportpublic FloatFrameBuffer(int width,
int height,
boolean hasDepth)
width - the width of the framebuffer in pixelsheight - the height of the framebuffer in pixelshasDepth - whether to attach a depth bufferGdxRuntimeException - in case the FrameBuffer could not be createdprotected Texture createColorTexture()
GLFrameBuffercreateColorTexture in class FrameBufferprotected void disposeColorTexture(Texture colorTexture)
GLFrameBufferdisposeColorTexture in class FrameBuffer