TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class TextureTileState in Tinman.AddOns.Shaders

Render state wrapper for Tinman.TextureAtlas.inc.

sealed class TextureTileState  

See also:

TextureTile

Public / Constructors

Default

Creates 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 [not-null] The texture tile state object.

Remarks:

These are the default base texture parameter names:

These are the default texture parameter names:

TextureTileState

Creates 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.

Public / Methods

Apply

Applies the given texture tile state.

public method Apply (TextureTile tile)
params tile The texture tile.

Remarks:

This method does not call ApplyChanges.