public class VariableTarget
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
buildRectangle
By default we'll build a rectangle to display the target
|
java.lang.Boolean |
clearEveryFrame
If set, we clear the render target every frame.
|
int |
color
Color of the rectangle used to draw the render target
|
ComponentObject |
compObj |
int |
drawPriority
Draw priority of the rectangle we'll use to draw the render target to the screen
|
RenderController.ImageFormat |
imageFormat |
RenderTarget |
renderTarget |
protected MaplyTexture |
renderTex |
double |
scale
Scale the screen by this amount for the render
|
protected boolean |
setup |
boolean |
valid |
static int |
VariableTargetDrawPriority
A plausible draw priority for render targets.
|
Constructor and Description |
---|
VariableTarget(RenderControllerInterface inVc)
The variable target is actually created a tick later than this
so you can tweak its settings.
|
VariableTarget(RenderControllerInterface inVc,
boolean setupNow)
This version can be set up explicitly later.
|
Modifier and Type | Method and Description |
---|---|
void |
addVariableTarget(VariableTarget target)
Passing in another variable target will let us assign that target to the
rectangle used to render this variable target's data.
|
protected void |
delayedSetup() |
void |
setShader(Shader inShader)
Set the shader to use on the rectangle we render to.
|
void |
setup()
Call setup explicitly after setting values.
|
void |
shutdown()
Clean up the associated render target and rectangle.
|
public boolean valid
protected boolean setup
public static final int VariableTargetDrawPriority
public double scale
public int color
public int drawPriority
public RenderController.ImageFormat imageFormat
public boolean buildRectangle
protected MaplyTexture renderTex
public RenderTarget renderTarget
public ComponentObject compObj
public java.lang.Boolean clearEveryFrame
public VariableTarget(RenderControllerInterface inVc, boolean setupNow)
public VariableTarget(RenderControllerInterface inVc)
public void setShader(Shader inShader)
public void addVariableTarget(VariableTarget target)
public void setup()
protected void delayedSetup()
public void shutdown()