Aw float

From ActiveWiki
Revision as of 16:30, 31 October 2008 by Macavity (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Minimum requirements
Added in version 2.1
SDKbuild 13


 float aw_float (AW_ATTRIBUTE a);

Description

Returns a floating point attribute.

Callback

None (returns immediately)

Arguments

a
Attribute (defined in Aw.h).

Argument attributes

None

Return values

0
If the attribute is not floating point, or does not exist.
any
If successful.

Returned attributes

None.

Usage

Display the current directional light vector.

printf ("The directional light vector is (%g, %g, %g)\n", 
        aw_float (AW_WORLD_LIGHT_X),
        aw_float (AW_WORLD_LIGHT_Y), 
        aw_float (AW_WORLD_LIGHT_Z));

See also