Description | Hierarchy | Fields | Methods | Properties |
type TAd2dLight = class(TObject)
A class that represents a light in the current scene. This type of light is only capable of doing vertex lighting.
procedure EnableLight(ALight: Cardinal); virtual; abstract; |
|
procedure DisableLight; virtual; abstract; |
property Data: TAd2dLightData read FData write SetData; |
procedure EnableLight(ALight: Cardinal); virtual; abstract; |
|
Enables the current light and assigns it to the given light number. A Andorra 2D graphic system implementation has to be capable of supporting the light numbers 0-7. The maximum light count may be read in the TAd2dApplication.MaxLights property. The light settings have to be set before activating the light source. See also
|
procedure DisableLight; virtual; abstract; |
|
Disables the light, if it had been activated. |
property Data: TAd2dLightData read FData write SetData; |
|
The light settings. Set these settings before enabling the light. |