public class LibgdxFrameBuffer extends java.lang.Object implements FrameBuffer
Modifier and Type | Field and Description |
---|---|
com.badlogic.gdx.graphics.glutils.FrameBuffer |
frameBuffer |
LibgdxTexture |
texture |
Constructor and Description |
---|
LibgdxFrameBuffer(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Calls
FrameBuffer.bind() and sets up the viewport |
void |
bind()
Binds the frame buffer so that everything gets rendered to it
|
void |
dispose() |
void |
end()
Calls
FrameBuffer.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
|
public final com.badlogic.gdx.graphics.glutils.FrameBuffer frameBuffer
public LibgdxTexture texture
public void begin()
FrameBuffer
FrameBuffer.bind()
and sets up the viewportbegin
in interface FrameBuffer
public void end()
FrameBuffer
FrameBuffer.unbind()
and restores the viewport to its default stateend
in interface FrameBuffer
public void bind()
FrameBuffer
bind
in interface FrameBuffer
public void unbind()
FrameBuffer
unbind
in interface FrameBuffer
public int getWidth()
FrameBuffer
getWidth
in interface FrameBuffer
public int getHeight()
FrameBuffer
getHeight
in interface FrameBuffer
public Texture getTexture()
FrameBuffer
getTexture
in interface FrameBuffer
public void dispose()
dispose
in interface org.mini2Dx.gdx.utils.Disposable