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

class GraphicsContextFactory_Config in Tinman.AddOns.Rendering

sealed class GraphicsContextFactory_Config extends ConfiguratorObject<IGraphicsContextFactory>

Public / Constants

FieldMultisample

public constant FieldMultisample = "multisample"
type string

FieldShaders

public constant FieldShaders = "shaders"
type string

FieldVsync

public constant FieldVsync = "vsync"
type string

Public / Attributes

Type

Returns the configuration type of this configurator.

public override property Type { get }
type ConfigType
value [not-null] The configuration type.
implements ConfiguratorBase.Type

Public / Methods

FromField

Creates a new instance from a field of the given configuration value.

[OwnerReturn]
public method FromField (ConfigValue config, string field)
type T
params config [not-null] The configuration value.
  field [not-null] Field name.
returns [not-null] The created instance.
inherited ConfiguratorBase.FromField

FromScript

Creates a new instance from the given configuration entity.

[OwnerReturn]
public method FromScript (ConfigScript script, string name)
type T
params script [not-null] The config script.
  name [not-null] Name of the entity.
returns [not-null] The created instance.
inherited ConfiguratorBase.FromScript

FromValue

Creates a new instance from the given configuration value.

[OwnerReturn]
public override sealed method FromValue (ConfigValue config)
type T
params config [not-null] The configuration value.
returns [not-null] The created instance.
inherited ConfiguratorObject.FromValue

FromValueArray

Creates an array of instances from the given configuration value.

[OwnerReturn]
public method FromValueArray (ConfigValue config)
type T[]
params config [not-null] The configuration value.
returns The resulting array or null if config contains zero elements.
inherited ConfiguratorBase.FromValueArray

FromValueList

Creates an array of instances from the given configuration value.

[OwnerReturn]
public method FromValueList (ConfigValue config)
type IVector<T>
params config [not-null] The configuration value.
returns The resulting array or null if config contains zero elements.
inherited ConfiguratorBase.FromValueList

FromValuePlain

Creates a new instance from the given configuration value.

[OwnerReturn]
public method FromValuePlain (ConfigValue value)
type IConfigurable
params value [not-null] The configuration value.
returns [not-null] The created instance.
inherited ConfiguratorObject.FromValuePlain

PleaseIncludeInBinaryThanks

This is a no-op method that forces the compiler / linker to include this type in the resulting binary.

public method PleaseIncludeInBinaryThanks ()
inherited ConfiguratorBase.PleaseIncludeInBinaryThanks

Remarks:

Calling this stub method makes sure that all lazy constructor calls have been made.

To initialize everything, an application needs to call this method on its root module(s) (see TinmanModule), followed by a call to PleaseIncludeInBinaryThanksAll.

ToValue

Returns the configuration value that describes the given object.

public override sealed method ToValue (T instance)
type ConfigValue
params instance The object.
returns [not-null] The configuration value.
inherited ConfiguratorObject.ToValue

Remarks:

The returned value may be of type Invalid, which means that the given object in its current state cannot be described with the configuration API.

ToValueArray

Returns the configuration value that describes the given objects.

public method ToValueArray (T[] instances)
type ConfigValue
params instances The object.
returns [not-null] The configuration array value.
inherited ConfiguratorBase.ToValueArray

Remarks:

The returned value may be of type Invalid, which means that the given object in its current state cannot be described with the configuration API.

ToValueList

Returns the configuration value that describes the given objects.

public method ToValueList (IVectorConst<T> instances)
type ConfigValue
params instances The object.
returns [not-null] The configuration array value.
inherited ConfiguratorBase.ToValueList

Remarks:

The returned value may be of type Invalid, which means that the given object in its current state cannot be described with the configuration API.

ValidateValue

Performs custom validation of the given value.

public virtual method ValidateValue (ConfigValue value, Validator validator)
params value [not-null] The value to validate.
  validator [not-null] The validator object.
inherited ConfiguratorObject.ValidateValue