Public Member Functions

ILightingData Class Reference

Search for all occurrences

Detailed Description

Access Lighting data from 3ds Max lights.

This is the main access to the lights. The user would request the light data from the LightManager based on the D3DHANDLE

#include <RTMax.h>

Inheritance diagram for ILightingData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~ILightingData ()
  Destructor.
virtual D3DXVECTOR4  GetPosition ()=0
  Get the Position of the light.
virtual D3DXVECTOR4  GetDirection ()=0
  Get the current direction of the light.
virtual D3DXVECTOR4  GetColor ()=0
  Get the current color.
virtual float  GetFallOff ()=0
  Get the current falloff value.
virtual float  GetHotSpot ()=0
  Get the current Hotspot value.
virtual D3DXVECTOR4  GetAttenuation ()=0
  Get Attenuation data from active light.

Constructor & Destructor Documentation

virtual ~ILightingData ( ) [inline, virtual]

Destructor.

{;}

Member Function Documentation

virtual D3DXVECTOR4 GetPosition ( ) [pure virtual]

Get the Position of the light.

Returns:
A directX vector containing the position
virtual D3DXVECTOR4 GetDirection ( ) [pure virtual]

Get the current direction of the light.

Returns:
A directX vector containing the direction
virtual D3DXVECTOR4 GetColor ( ) [pure virtual]

Get the current color.

Returns:
A DirectX color value.
virtual float GetFallOff ( ) [pure virtual]

Get the current falloff value.

Returns:
A float representing the value.
virtual float GetHotSpot ( ) [pure virtual]

Get the current Hotspot value.

Returns:
A float representing the value.
virtual D3DXVECTOR4 GetAttenuation ( ) [pure virtual]

Get Attenuation data from active light.

The attenuation from a 3ds Max light is returned using this method. The D3DXVECTOR4 is used in the following was x = near Attenuation start y = near Attenuation snd z = far Attenuation start w = far Attenuation end This can be used in conjunction with GetFallOff and GetHotSpot to create very realistic lighting results

Returns:
The attenuation data for the light queried.

ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData
ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData ILightingData