Class TAd2dLight

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAd2dLight = class(TObject)

Description

A class that represents a light in the current scene. This type of light is only capable of doing vertex lighting.

See also
TAd2dLightData
A record that contains light source settings.

Hierarchy

Overview

Methods

Public procedure EnableLight(ALight: Cardinal); virtual; abstract;
Public procedure DisableLight; virtual; abstract;

Properties

Public property Data: TAd2dLightData read FData write SetData;

Description

Methods

Public 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
TAd2dLight.Data
The light settings.
TAd2dApplication.MaxLights
Returns the number of max lights
Public procedure DisableLight; virtual; abstract;

Disables the light, if it had been activated.

Properties

Public property Data: TAd2dLightData read FData write SetData;

The light settings. Set these settings before enabling the light.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:58