8 Data Structures

8 Directional Light Data Structure

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

typedef struct TQ3DirectionalLightData {
 TQ3LightData         lightData;
 TQ3Boolean         castsShadows;
 TQ3Vector3D         direction;
} TQ3DirectionalLightData;
lightData A light data structure specifying basic information about the directional light.
castsShadows A Boolean value that indicates whether the directional light casts shadows (kQ3True) or not (kQ3False).
direction The direction of the directional light. Note that the direction is defined as a world-space vector away from the light source. This vector does not need to be normalized, but its length must be greater than 0.

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