public abstract class AbstractRenderer
extends java.lang.Object
Constructor and Description |
---|
AbstractRenderer() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clear() |
double |
getAbsoluteAspectRation() |
int |
getAbsoluteHeight() |
int |
getAbsoluteWidth() |
double |
getClearAlpha()
Returns the opacity of the scene's background color, range 0.0 (invisible) to 1.0 (opaque)
|
Color |
getClearColor()
Returns the background color.
|
boolean |
isAutoClear()
Gets
setAutoClear(boolean) flag. |
abstract void |
render(Scene scene,
Camera camera) |
void |
setAutoClear(boolean isAutoClear)
Defines whether the renderer should automatically clear its output before rendering.
|
void |
setClearColor(Color color) |
abstract void |
setClearColor(Color color,
double alpha)
Sets the the background color, using
Color for the color and alpha for the opacity. |
void |
setClearColor(int hex) |
void |
setClearColor(int hex,
double alpha)
Sets the the background color, using hex for the color.
|
void |
setSize(int width,
int height) |
public void setSize(int width, int height)
public int getAbsoluteWidth()
public int getAbsoluteHeight()
public double getAbsoluteAspectRation()
public void setClearColor(int hex)
public void setClearColor(Color color)
public void setClearColor(int hex, double alpha)
hex
- the clear color value.public abstract void setClearColor(Color color, double alpha)
Color
for the color and alpha for the opacity.color
- the Color
instance.alpha
- the opacity of the scene's background color, range 0.0 (invisible) to 1.0 (opaque).public Color getClearColor()
Color
instance.public double getClearAlpha()
public boolean isAutoClear()
setAutoClear(boolean)
flag.public void setAutoClear(boolean isAutoClear)
isAutoClear
- false or truepublic abstract void clear()