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

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