public class ManagedFBO
A framebuffer object. Max size is the resolution of the display, but if you set it to smaller size then only a smaller portion of the framebuffer will actually be used. That way we can change the virtual size of the framebuffer on the fly without allocating a new framebuffer object.
Constructor and Description |
---|
ManagedFBO()
A framebuffer object. Max size is the resolution of the display, but if you set it to smaller size
then only a smaller portion of the framebuffer will actually be used. That way we can change
the virtual size of the framebuffer on the fly without allocating a new framebuffer object.
|
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
dispose() |
void |
end() |
float |
getHeight() |
int |
getMAX_HEIGHT() |
int |
getMAX_WIDTH() |
com.badlogic.gdx.math.Matrix4 |
getProjectionMatrix() |
float |
getWidth() |
void |
resize(float w,
float h,
float scale) |
void |
resizeToScreenSize(float w,
float h) |
void |
setHeight(float p) |
void |
setWidth(float p) |
void |
updateShader(com.badlogic.gdx.graphics.g2d.SpriteBatch fboBatch) |
public ManagedFBO()
A framebuffer object. Max size is the resolution of the display, but if you set it to smaller size then only a smaller portion of the framebuffer will actually be used. That way we can change the virtual size of the framebuffer on the fly without allocating a new framebuffer object.
public int getMAX_WIDTH()
public int getMAX_HEIGHT()
public float getWidth()
public void setWidth(float p)
public float getHeight()
public void setHeight(float p)
public com.badlogic.gdx.math.Matrix4 getProjectionMatrix()
public void dispose()
public void resize(float w, float h, float scale)
public void resizeToScreenSize(float w, float h)
public void begin()
public void end()
public void updateShader(com.badlogic.gdx.graphics.g2d.SpriteBatch fboBatch)