Class FloatFrameBuffer
- java.lang.Object
-
- com.badlogic.gdx.graphics.glutils.GLFrameBuffer<Texture>
-
- com.badlogic.gdx.graphics.glutils.FrameBuffer
-
- com.badlogic.gdx.graphics.glutils.FloatFrameBuffer
-
- All Implemented Interfaces:
Disposable
public class FloatFrameBuffer extends FrameBuffer
This is aFrameBuffer
variant backed by a float texture.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.glutils.GLFrameBuffer
GLFrameBuffer.FloatFrameBufferBuilder, GLFrameBuffer.FrameBufferBuilder, GLFrameBuffer.FrameBufferCubemapBuilder, GLFrameBuffer.FrameBufferRenderBufferAttachmentSpec, GLFrameBuffer.FrameBufferTextureAttachmentSpec, GLFrameBuffer.GLFrameBufferBuilder<U extends GLFrameBuffer<? extends GLTexture>>
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.glutils.GLFrameBuffer
bufferBuilder, buffers, defaultFramebufferHandle, defaultFramebufferHandleInitialized, depthbufferHandle, depthStencilPackedBufferHandle, framebufferHandle, GL_DEPTH24_STENCIL8_OES, hasDepthStencilPackedBuffer, isMRT, stencilbufferHandle, textureAttachments
-
-
Constructor Summary
Constructors Modifier Constructor 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.protected
FloatFrameBuffer(GLFrameBuffer.GLFrameBufferBuilder<? extends GLFrameBuffer<Texture>> bufferBuilder)
Creates a GLFrameBuffer from the specifications provided by bufferBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Texture
createTexture(GLFrameBuffer.FrameBufferTextureAttachmentSpec attachmentSpec)
Override this method in a derived class to set up the backing texture as you like.-
Methods inherited from class com.badlogic.gdx.graphics.glutils.FrameBuffer
attachFrameBufferColorTexture, disposeColorTexture, unbind
-
Methods inherited from class com.badlogic.gdx.graphics.glutils.GLFrameBuffer
begin, bind, build, clearAllFrameBuffers, dispose, end, end, getColorBufferTexture, getDepthBufferHandle, getDepthStencilPackedBuffer, getFramebufferHandle, getHeight, getManagedStatus, getManagedStatus, getStencilBufferHandle, getTextureAttachments, getWidth, invalidateAllFrameBuffers, setFrameBufferViewport
-
-
-
-
Constructor Detail
-
FloatFrameBuffer
protected FloatFrameBuffer(GLFrameBuffer.GLFrameBufferBuilder<? extends GLFrameBuffer<Texture>> bufferBuilder)
Creates a GLFrameBuffer from the specifications provided by bufferBuilder- Parameters:
bufferBuilder
-
-
FloatFrameBuffer
public 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.- Parameters:
width
- the width of the framebuffer in pixelsheight
- the height of the framebuffer in pixelshasDepth
- whether to attach a depth buffer- Throws:
GdxRuntimeException
- in case the FrameBuffer could not be created
-
-
Method Detail
-
createTexture
protected Texture createTexture(GLFrameBuffer.FrameBufferTextureAttachmentSpec attachmentSpec)
Description copied from class:GLFrameBuffer
Override this method in a derived class to set up the backing texture as you like.- Overrides:
createTexture
in classFrameBuffer
-
-