public abstract class RenderTarget extends java.lang.Object implements Closeable
Graphics.defaultRenderTargetCloseable.Set, Closeable.Util| Modifier and Type | Field and Description |
|---|---|
Graphics |
gfx
A handle on our graphics services.
|
| Constructor and Description |
|---|
RenderTarget(Graphics gfx) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Binds the framebuffer.
|
void |
close()
Deletes the framebuffer associated with this render target.
|
static RenderTarget |
create(Graphics gfx,
Texture tex)
Creates a render target that renders to
texture. |
abstract boolean |
flip()
Whether or not to flip the y-axis when rendering to this target.
|
abstract int |
height()
The height of the framebuffer in pixels.
|
abstract int |
id()
The framebuffer id.
|
java.lang.String |
toString() |
abstract int |
width()
The width of the framebuffer in pixels.
|
abstract float |
xscale()
The x-scale between display units and pixels for this target.
|
abstract float |
yscale()
The y-scale between display units and pixels for this target.
|
public final Graphics gfx
public RenderTarget(Graphics gfx)
public static RenderTarget create(Graphics gfx, Texture tex)
texture.public abstract int id()
public abstract int width()
public abstract int height()
public abstract float xscale()
public abstract float yscale()
public abstract boolean flip()
public void bind()
public void close()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.