VCL RAD DirectX for C++ Builder

Welcome to

www.tdxlibrary.org

Home of the
the TDx_Library...

=- RAD DirectX =-

"RAD DirectX"
for
C++ Builder

...

Welcome to tdxlibrary.org Latest News

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

Register our Tools Available Downloads

Frequently Asked Questions Links to other sites Information about the tdxlibrary.org website


    TDx_3DI_Library v2.00 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: darren_john_dwyer@hotmail.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Links |  Site Information

This page is Copyright © 2019 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.