Main Index : Reference :

TextureTag


Description

The class for texture tags.

Definition

class TextureTag : BaseTag
{
public:
  TextureTag();
  
  [bool] SetMaterial([Marker] marker);
  [Marker] GetMaterial();

  [vector] GetPosition();
  [vector] GetScale();
  [vector] GetRotation();

  [bool] SetPosition([vector] p);
  [bool] SetScale([vector] s);
  [bool] SetRotation([vector] r);

  [Matrix] GetMl();
  [Matrix] GetMln();

  [bool] SetMl([Matrix] ml);
}

Explanation

This is the class used for texture tags. In addition to the functions, it contains the following container values:

Container ID Type Explanation
TEXTURETAG_OX [float] Offset X
TEXTURETAG_OY [float] Offset Y
TEXTURETAG_LENX [float] Length X
TEXTURETAG_LENY [float] Length Y
TEXTURETAG_TILE [bool] Tile
TEXTURETAG_SEAMLESS [bool] Seamless
TEXTURETAG_MIX [bool] Mix
TEXTURETAG_PROJECTION [int] Projection (see the dialog)
TEXTURETAG_SIDE [int] Side (see the dialog)
TEXTURETAG_RESTRICTION [string] Restrict to selection

Members

SetMaterial( marker )

[bool] SetMaterial([Marker] marker);

Sets the material of the tag to the material with the passed marker.

GetMaterial()

[Marker] GetMaterial();

Returns the marker of the current material.


GetPosition()

[vector] GetPosition();

Returns the position of the texture projection.

GetScale()

[vector] GetScale();

Returns the scale of the texture projection.

GetRotation()

[vector] GetRotation();

Returns the rotation of the texture projection.


SetPosition( p )

[bool] SetPosition([vector] p);

Sets the position of the texture projection to p.

SetScale( s )

[bool] SetScale([vector] s):

Sets the scale of the texture projection to s.

SetRotation( r )

[bool] SetRotation([vector] r);

Sets the rotation of the texture projection to r.


GetMl()

[Matrix] GetMl();

Returns the texture projection's coordinate system as a matrix.

GetMln()

[Matrix] GetMln();

Returns the texture projection's coordinate system as a normalized matrix.


SetMl( ml )

[bool] SetMl([Matrix] ml);

Sets the texture projection's coordinate system matrix to ml.