APIdia Launch Partner
Top Description Constructors Methods
com.badlogic.gdx.graphics.glutils

public Class FloatFrameBuffer

extends FrameBuffer
Class Inheritance
Imports
com.badlogic.gdx.Application.ApplicationType, .Gdx, com.badlogic.gdx.graphics.GL30, .Texture, .Texture.TextureFilter, .Texture.TextureWrap, com.badlogic.gdx.utils.GdxRuntimeException

This is a FrameBuffer variant backed by a float texture.

Constructor Summary

AccessConstructor and Description
pack-priv
protected
FloatFrameBuffer(GLFrameBuffer.GLFrameBufferBuilder<? extends GLFrameBuffer<Texture>> bufferBuilder)

Creates a GLFrameBuffer from the specifications provided by bufferBuilder

public
FloatFrameBuffer(int
the width of the framebuffer in pixels
width
,
int
the height of the framebuffer in pixels
height
,
boolean
whether to attach a depth buffer
hasDepth
)

Creates a new FrameBuffer with a float backing texture, having the given dimensions and potentially a depth buffer attached.

Method Summary

Modifier and TypeMethod and Description
private void
checkExtensions()

Check for support for any required extensions on the current platform.

protected Texture
createTexture(GLFrameBuffer.FrameBufferTextureAttachmentSpec attachmentSpec)

Overrides com.badlogic.gdx.graphics.glutils.FrameBuffer.createTexture.

Override this method in a derived class to set up the backing texture as you like.

Inherited from com.badlogic.gdx.graphics.glutils.FrameBuffer:
attachFrameBufferColorTexturedisposeColorTextureunbind

Constructor Detail

FloatFrameBufferback to summary
pack-priv FloatFrameBuffer()
FloatFrameBufferback to summary
protected FloatFrameBuffer(GLFrameBuffer.GLFrameBufferBuilder<? extends GLFrameBuffer<Texture>> bufferBuilder)

Creates a GLFrameBuffer from the specifications provided by bufferBuilder

FloatFrameBufferback to summary
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:int

the width of the framebuffer in pixels

height:int

the height of the framebuffer in pixels

hasDepth:boolean

whether to attach a depth buffer

Exceptions
GdxRuntimeException:
in case the FrameBuffer could not be created

Method Detail

checkExtensionsback to summary
private void checkExtensions()

Check for support for any required extensions on the current platform.

createTextureback to summary
protected Texture createTexture(GLFrameBuffer.FrameBufferTextureAttachmentSpec attachmentSpec)

Overrides com.badlogic.gdx.graphics.glutils.FrameBuffer.createTexture.

Doc from com.badlogic.gdx.graphics.glutils.GLFrameBuffer.createTexture.

Override this method in a derived class to set up the backing texture as you like.

Annotations
@Override