8 Data Structures

8 Point Light Data Structure

You use a point light data structure to get or set information about a point light source. A point light data structure is defined by the TQ3PointLightData data type.

typedef struct TQ3PointLightData {
 TQ3LightData         lightData;
 TQ3Boolean         castsShadows;
 TQ3AttenuationType         attenuation;
 TQ3Point3D         location;
} TQ3PointLightData;
lightData A light data structure specifying basic information about the point light.
castsShadows A Boolean value that indicates whether the point light casts shadows (kQ3True) or not (kQ3False).
attenuation The type of attenuation of the point light. See "Light Attenuation Values" on page 8-10 for a description of the constants this field can contain.
location The location of the point light, in world coordinates.

3D Graphics Programming with QuickDraw 3D - 16 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker