www.BCB-Tools.com

Home of
RAD DirectX
for
C++ Builder

...

C++ Builder wrapping DirectX

...

Please Register

So we can
create more

the TDx_Library
the TDx9_Library



Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-by-Step Tutorials Component Reference

Register Here! Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    TDx_3DI_Library v1.90 Component Reference

    -= Click to navigate the reference =-
    Go to the Welcome Page

    [ TDx_3DDevice::LightEnable() ]     [ next: Load() ]     [ prev: Internal_EnumTextureFormatsCallback() ]

    public:

         virtual bool __fastcall LightEnable( dword pLightIndex, bool pEnable );





    -= Go to the TDx_3DDevice description =-    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: admin@bcb-tools.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2008 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.