Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This enumeration contains values that define types of transformation matrices.

Syntax

typedef enum _D3DMTRANSFORMSTATETYPE {
  D3DMTS_WORLD		= 0,
  D3DMTS_VIEW		 = 1,
  D3DMTS_PROJECTION   = 2,
  D3DMTS_TEXTURE0	 = 3,
  D3DMTS_TEXTURE1	 = 4,
  D3DMTS_TEXTURE2	 = 5,
  D3DMTS_TEXTURE3	 = 6,
  D3DMTS_NUMTRANSFORM = 7,
  D3DMTS_FORCE_ULONG  = 0x7fffffff,
} D3DMTRANSFORMSTATETYPE;

Elements

D3DMTS_WORLD

Indicates that the transformation matrix transforms vertices from model space to world space.

D3DMTS_VIEW

Indicates that the transformation matrix transforms vertices from world space to camera space.

D3DMTS_PROJECTION

Indicates that the transformation matrix transforms vertices from camera space to projection space.

D3DMTS_TEXTURE0

Identifies the transformation matrix being set for the specified texture stage.

D3DMTS_TEXTURE1

Identifies the transformation matrix being set for the specified texture stage.

D3DMTS_TEXTURE2

Identifies the transformation matrix being set for the specified texture stage.

D3DMTS_TEXTURE3

Identifies the transformation matrix being set for the specified texture stage.

D3DMTS_NUMTRANSFORM

Identifies the number of transformation matrices.

D3DMTS_FORCE_ULONG

Forces the compiler to interpret the enumeration as a ULONG value. This value is not used directly in Direct3D Mobile programming.

Remarks

You can set the type of a transformation matrix by calling the IDirect3DMobileDevice::SetTransformmethod.

Requirements

Header d3dmtypes.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also