Render
state
wrapper
for
Tinman.TextureAtlas.inc
.
sealed class
|
TextureTileState
|
See also:
TextureTileCreates a new instance of TextureTileState using default names for the shader parameters.
public
static
method
|
Default
(IShaderEffect effect,
bool baseTexture)
|
||
type
|
TextureTileState
|
||
params
|
effect
|
[not-null]
|
The shader effect. |
baseTexture
|
Use base texture parameters? | ||
returns
|
|
The texture tile state object. |
Remarks:
These are the default base texture parameter names:
'terrainBaseTexture'
->Texture'terrainBaseOffset'
->Offset'terrainBaseU'
->U'terrainBaseV'
->V'terrainBaseBounds'
->BoundsCreates a new instance of TextureTileState.
public
constructor
|
TextureTileState
(IShaderEffect effect,
string texture,
string offset,
string u,
string v,
string bounds = null)
|
||
params
|
effect
|
[not-null]
|
The shader effect. |
texture
|
[not-null]
|
Name of shader parameter that will be set to Bounds. | |
offset
|
[not-null]
|
Name of shader parameter that will be set to Offset. | |
u
|
[not-null]
|
Name of shader parameter that will be set to U. | |
v
|
[not-null]
|
Name of shader parameter that will be set to V. | |
bounds
|
Name
of
shader
parameter
that
will
be
set
to
Bounds
or
null .
Defaults
to
null .
|
Applies the given texture tile state.
public
method
|
Apply
(TextureTile tile)
|
||
params
|
tile
|
The texture tile. |
Remarks:
This method does not call ApplyChanges.