public class FloatFrameBuffer extends FrameBuffer
FrameBuffer
variant backed by a float texture.GLFrameBuffer.FloatFrameBufferBuilder, GLFrameBuffer.FrameBufferBuilder, GLFrameBuffer.FrameBufferCubemapBuilder, GLFrameBuffer.FrameBufferRenderBufferAttachmentSpec, GLFrameBuffer.FrameBufferTextureAttachmentSpec, GLFrameBuffer.GLFrameBufferBuilder<U extends GLFrameBuffer<? extends GLTexture>>
bufferBuilder, buffers, defaultFramebufferHandle, defaultFramebufferHandleInitialized, depthbufferHandle, depthStencilPackedBufferHandle, framebufferHandle, GL_DEPTH24_STENCIL8_OES, hasDepthStencilPackedBuffer, isMRT, stencilbufferHandle, textureAttachments
Modifier | Constructor and Description |
---|---|
protected |
FloatFrameBuffer(GLFrameBuffer.GLFrameBufferBuilder<? extends GLFrameBuffer<Texture>> bufferBuilder)
Creates a GLFrameBuffer from the specifications provided by bufferBuilder
|
|
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 |
createTexture(GLFrameBuffer.FrameBufferTextureAttachmentSpec attachmentSpec)
Override this method in a derived class to set up the backing texture as you like.
|
attachFrameBufferColorTexture, disposeColorTexture, unbind
begin, bind, build, clearAllFrameBuffers, dispose, end, end, getColorBufferTexture, getDepthBufferHandle, getDepthStencilPackedBuffer, getFramebufferHandle, getHeight, getManagedStatus, getManagedStatus, getStencilBufferHandle, getTextureAttachments, getWidth, invalidateAllFrameBuffers, setFrameBufferViewport
protected FloatFrameBuffer(GLFrameBuffer.GLFrameBufferBuilder<? extends GLFrameBuffer<Texture>> bufferBuilder)
bufferBuilder
- public 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 createTexture(GLFrameBuffer.FrameBufferTextureAttachmentSpec attachmentSpec)
GLFrameBuffer
createTexture
in class FrameBuffer