Compartilhar via


D3DMX_ Values

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following macros define convenient values for use in Microsoft® Direct3D® Mobile.

Syntax

#define D3DMX_PI    ((FLOAT)  3.141592654f)
#define D3DMX_1BYPI ((FLOAT)  0.318309886f)
#define D3DMX_PI_FXD    ((FIXED)(3.141592654f * 65536.0f))
#define D3DMX_1BYPI_FXD ((FIXED)(0.318309886f * 65536.0f))
#define D3DMX_DEFAULT       ULONG_MAX
#define D3DMX_DEFAULT_FLOAT FLT_MAX

Remarks

The following table describes these macro values.

Value Description

D3DMX_PI

The value of PI in floating point format

D3DMX_1BYPI

The value of 1/PI in floating point format

D3DMX_PI_FXD

The value of PI in fixed point format

D3DMX_1BYPI_FXD

The value of 1/PI in fixed point format

D3DMX_DEFAULT

The largest possible fixed point number in the Direct3D Mobile Extensions.

D3DMX_DEFAULT_FLOAT

The largest possible floating point number in the Direct3D Mobile Extensions.

Requirements

Header d3dmx.h
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

See Also

Reference

D3DMX Macros