8 Managing Lights

8 Q3Light_GetType

You can use the Q3Light_GetType function to get the type of a light object.

TQ3ObjectType Q3Light_GetType (TQ3LightObject light);
light A light object.

DESCRIPTION


The Q3Light_GetType function returns, as its function result, the type of the light object specified by the light parameter. The types of light objects currently supported by QuickDraw3D are defined by these constants:

kQ3LightTypeAmbient
kQ3LightTypeDirectional
kQ3LightTypePoint
kQ3LightTypeSpot
If the specified light object is invalid or is not one of these types, Q3Light_GetType returns the value kQ3ObjectTypeInvalid.

DESCRIPTION

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