public final class RenderStates extends Object
RenderTarget
.Modifier and Type | Field and Description |
---|---|
BlendMode |
blendMode
The blending mode used for drawing.
|
static RenderStates |
DEFAULT
Pre-defined instance holding the default render states using
BlendMode.ALPHA blending, the identity transformation and no texture or shader. |
ConstShader |
shader
The shader used for drawing.
|
ConstTexture |
texture
The texture used for drawing.
|
Transform |
transform
The transformation matrix used for drawing.
|
Constructor and Description |
---|
RenderStates(BlendMode blendMode)
Constructs a new set of render states with default settings and
the specified blending mode.
|
RenderStates(BlendMode blendMode,
Transform transform,
ConstTexture texture,
ConstShader shader)
Constructs a new set of render states with the specified parameters.
|
RenderStates(ConstShader shader)
Constructs a new set of render states with default settings and
the specified shader.
|
RenderStates(ConstTexture texture)
Constructs a new set of render states with default settings and
the specified texture.
|
RenderStates(RenderStates states,
BlendMode blendMode)
Constructs a new set of render states by copying other states,
but changing the blend mode.
|
RenderStates(RenderStates states,
ConstShader shader)
Constructs a new set of render states by copying other states,
but changing the shader.
|
RenderStates(RenderStates states,
ConstTexture texture)
Constructs a new set of render states by copying other states,
but changing the texture.
|
RenderStates(RenderStates states,
Transform transform)
Constructs a new set of render states by copying other states,
but changing the transformation.
|
RenderStates(Transform transform)
Constructs a new set of render states with default settings and
the specified transformation matrix.
|
public static final RenderStates DEFAULT
BlendMode.ALPHA
blending, the identity transformation and no texture or shader.public final BlendMode blendMode
public final Transform transform
public final ConstTexture texture
public final ConstShader shader
public RenderStates(BlendMode blendMode)
blendMode
- the blending mode used for drawing.public RenderStates(Transform transform)
transform
- the transformation matrix used for drawing.public RenderStates(ConstTexture texture)
texture
- the texture used for drawing,
or null
to indicate that no texture should be used.public RenderStates(ConstShader shader)
shader
- the shader applied to whatever is drawn using these states,
or null
to indicate that no shader should be used.public RenderStates(RenderStates states, BlendMode blendMode)
blendMode
- the blending mode used for drawing.public RenderStates(RenderStates states, Transform transform)
transform
- the transformation matrix used for drawing.public RenderStates(RenderStates states, ConstTexture texture)
texture
- the texture used for drawing, or null
to indicate that
no texture should be used.public RenderStates(RenderStates states, ConstShader shader)
shader
- the shader applied to whatever is drawn using these states,
or null
to indicate that no shader should be used.public RenderStates(BlendMode blendMode, Transform transform, ConstTexture texture, ConstShader shader)
blendMode
- the blending mode used for drawing.transform
- the transformation matrix used for drawing.texture
- the texture used for drawing,
or null
to indicate that no texture should be used.shader
- the shader applied to whatever is drawn using these states,
or null
to indicate that no shader should be used.