formZ SDK | 5.0 API Reference | Project | Modeling | Attributes

# fz_attr_tctl_parm_enum

Description

Parameter identifiers for the texture map control attribute. Used for the "which" argument of and

enum fz_attr_tctl_parm_enum {

FZ_ATTR_TCTL_PARM_NAME,

FZ_ATTR_TCTL_PARM_CENTER_HORIZ,

FZ_ATTR_TCTL_PARM_CENTER_VERT,

FZ_ATTR_TCTL_PARM_MIRROR_HORIZ,

FZ_ATTR_TCTL_PARM_MIRROR_VERT,

FZ_ATTR_TCTL_PARM_FLIP,

FZ_ATTR_TCTL_PARM_SOLID_SIZE,

FZ_ATTR_TCTL_PARM_MAP_TYPE,

FZ_ATTR_TCTL_PARM_ORIGIN,

FZ_ATTR_TCTL_PARM_ROTATION,

FZ_ATTR_TCTL_PARM_SIZE_X,

FZ_ATTR_TCTL_PARM_SIZE_Y,

FZ_ATTR_TCTL_PARM_REPS_X,

FZ_ATTR_TCTL_PARM_REPS_Y,

FZ_ATTR_TCTL_PARM_SCALE_WITH_OBJ,

FZ_ATTR_TCTL_PARM_SIZE_LOCK };

Members

FZ_ATTR_TCTL_PARM_NAME

Texture group name. The name cannot be longer than 32 characters.

Type: char*

FZ_ATTR_TCTL_PARM_CENTER_HORIZ

Center the horizontal tile

Type: fzrt_boolean

FZ_ATTR_TCTL_PARM_CENTER_VERT

Center the vertical tile

Type: fzrt_boolean

FZ_ATTR_TCTL_PARM_MIRROR_HORIZ

mirror the horizontal tile

Type: fzrt_boolean

FZ_ATTR_TCTL_PARM_MIRROR_VERT

Mirror the vertical tile

Type: fzrt_boolean

FZ_ATTR_TCTL_PARM_FLIP

Flip the horizontal and vertical direction of the texture

Type: fzrt_boolean

FZ_ATTR_TCTL_PARM_SOLID_SIZE

The size of a solid texture.

Type: double

Range: value > 0.0

FZ_ATTR_TCTL_PARM_MAP_TYPE

Mapping type. Certain restrictions apply when switching the mapping type of a texture map control. For more details see .

Type: fz_map_space_type_enum

FZ_ATTR_TCTL_PARM_ORIGIN

The origin of the texture map control

Type: fz_xyz_td

Range: 0.0 <= value <= 1.0 if the the mapping type is FZ_MAP_SPACE_PARAMETRIC (only x and y are used). FZ_MAP_SPACE_UV_CORDS does not have an origin parameter. For all other mapping types, the origin parameter specifies a 3D location.

FZ_ATTR_TCTL_PARM_ROTATION

The rotation of the texture map control in 3d space. The angles are applied in z y x order. FZ_MAP_SPACE_UV_CORDS and FZ_MAP_SPACE_PARAMETRIC do not have a rotation parameter.

Type: fz_xyz_td

FZ_ATTR_TCTL_PARM_SIZE_X

The horizontal size of a texture tile. For FZ_MAP_SPACE_PARAMETRIC the tile size is a factor of the length/depth of the parametric surface. At a factor of 1.0 the texture occupies the surface with one tile. For FZ_MAP_SPACE_UV_CORDS mapping, the tile size is a factor of the texture size, when FZ_MAP_SPACE_UV_CORDS was first assigned. For FZ_MAP_SPACE_FLAT, FZ_MAP_SPACE_CUBIC and the vertical size of FZ_MAP_SPACE_CYLINDER mapping, the tile size is a linear dimension, which must be greater than 0.0. For the horizontal size of FZ_MAP_SPACE_CYLINDER and for FZ_MAP_SPACE_SPHERE the tile size is an angular dimension in the range 0.0 < value < 2PI. The FZ_ATTR_TCTL_PARM_SIZE_X/Y and FZ_ATTR_TCTL_PARM_REPS_X/Y parameters are interdependent. When changing one, the other parameter will automatically be updated.

Type: double

Range: value > 0.0

FZ_ATTR_TCTL_PARM_SIZE_Y

The vertical size of a texture tile.

Type: double

Range: value > 0.0

FZ_ATTR_TCTL_PARM_REPS_X

The # of horizontal repetitions of a texture tile. For FZ_MAP_SPACE_CUBIC and FZ_MAP_SPACE_UV_CORDS this parameter does not apply. The MODEL_ATTR_TCTL_REPS and MODEL_ATTR_TCTL_SIZE parameters are interdependent. When changing one, the other parameter will automatically be updated.

Type: double

Range: value > 0.0

FZ_ATTR_TCTL_PARM_REPS_Y

The # of vertical repetitions of a texture tile.

Type: double

Range: value > 0.0

FZ_ATTR_TCTL_PARM_SCALE_WITH_OBJ

Scale the texture size, when uniform scaling is applied to the object.

Type: fzrt_boolean

FZ_ATTR_TCTL_PARM_SIZE_LOCK

The size lock option. Only, None, Square and Current are available.

Type: fz_map_space_size_lock_enum

Availability

5.0.0.0

Example Files

util_attr_tctl.fsl

See Also

,,

Defined in

fz_objt_tctl_api.h