Welcome to
www.tdxlibrary.org
Home of the
the TDx_Library...
"RAD DirectX"
for
C++ Builder
...
|
TDx_3DI_Library v2.00 Component Reference
|
|
[ TDx_3DDevice::LightEnable() ]
[ next: Load() ]
[ prev: Internal_EnumTextureFormatsCallback() ]
public:
virtual bool __fastcall LightEnable( dword pLightIndex, bool pEnable );
TDX_3DDEVICE::LIGHTENABLE()
[ component method ]
- Description
The
TDx_3DDevice::LightEnable()
method
will
enable
or
disable
a
given
lighting
property
set
for
this
device.
If
the
LightIndex
parameter
specifies
an
unassigned
light
property
set,
a
new
light
source
will
be
created
and
its
state
set
to
that
specified
in
the
Enable
parameter.
The
new
light's
settings
will
be
as
follows:
Type
D3DLIGHT_DIRECTIONAL
Diffuse
(R:1,
G:1,
B:1,
A:0)
Specular
(R:0,
G:0,
B:0,
A:0)
Ambient
(R:0,
G:0,
B:0,
A:0)
Position
(0,
0,
0)
Direction
(0,
0,
1)
Range
0
Falloff
0
Attenuation0
0
Attenuation1
0
Attenuation2
0
Theta
0
Phi
0
- Parameters
LightIndex
The LightIndex parameter defines the 0 based index of the lighting property set whose state is to be defined.
An out of range index results in the creation of a new light source.
Enable
The Enable parameter defines the state of the lighting property set.
Set TRUE to enable and FALSE to disable.
- See Also
- Top
If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.
|
|