public class LibgdxFrameBuffer extends java.lang.Object implements FrameBuffer
| Modifier and Type | Field and Description |
|---|---|
LibgdxFrameBufferWrapper |
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 LibgdxFrameBufferWrapper frameBuffer
public LibgdxTexture texture
public void begin()
FrameBufferFrameBuffer.bind() and sets up the viewportbegin in interface FrameBufferpublic void end()
FrameBufferFrameBuffer.unbind() and restores the viewport to its default stateend in interface FrameBufferpublic void bind()
FrameBufferbind in interface FrameBufferpublic void unbind()
FrameBufferunbind in interface FrameBufferpublic int getWidth()
FrameBuffergetWidth in interface FrameBufferpublic int getHeight()
FrameBuffergetHeight in interface FrameBufferpublic Texture getTexture()
FrameBuffergetTexture in interface FrameBufferpublic void dispose()
dispose in interface org.mini2Dx.gdx.utils.Disposable