Compartilhar via


D3DMTRANSFORMSTATETYPE

A version of this page is also available for

Windows Embedded CE 6.0 R3

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::SetTransform method.

Requirements

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

See Also

Reference

Direct3D Mobile Enumerations
IDirect3DMobileDevice::SetTransform