public interface FrameBuffer
extends org.mini2Dx.gdx.utils.Disposable
Disposable.dispose()
must be called when it is no longer needed.Modifier and Type | Method and Description |
---|---|
void |
begin()
Calls
bind() and sets up the viewport |
void |
bind()
Binds the frame buffer so that everything gets rendered to it
|
void |
end()
Calls
unbind() and restores the viewport to its default state |
int |
getHeight()
Returns the height of the frame buffer
|
Texture |
getTexture()
Returns the texture containing this frame buffer's data.
|
int |
getWidth()
Returns the width of the frame buffer
|
void |
unbind()
Unbinds the frame buffer so that everything is rendered to the default buffer
|
void begin()
bind()
and sets up the viewportvoid end()
unbind()
and restores the viewport to its default statevoid bind()
void unbind()
int getWidth()
int getHeight()
Texture getTexture()