public class FloatFrameBuffer extends FrameBuffer
FrameBuffer
variant backed by a float texture.colorTexture, format, hasDepth, height, 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 void |
setupTexture()
Override this method in a derived class to set up the backing texture as you like.
|
begin, bind, clearAllFrameBuffers, dispose, end, end, getColorBufferTexture, getHeight, getManagedStatus, getManagedStatus, getWidth, invalidateAllFrameBuffers, setDefaultFrameBufferViewport, setFrameBufferViewport, unbind
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 void setupTexture()
setupTexture
in class FrameBuffer