Axiom.RenderSystems.DirectX9.D3DRenderSystem.UseLights C# (CSharp) Метод

UseLights() приватный метод

private UseLights ( LightList lightList, int limit ) : void
lightList LightList
limit int
Результат void
        public override void UseLights( LightList lightList, int limit )
        {
            var activeDevice = ActiveD3D9Device;
            var i = 0;

            // Axiom specific: [indexer] wont create an entry in the map
            if (!_currentLights.ContainsKey(activeDevice))
                _currentLights.Add(activeDevice, 0);

            for ( ; i < limit && i < lightList.Count; i++ )
            {
                SetD3D9Light( i, lightList[ i ] );
            }

            for (; i < _currentLights[activeDevice]; i++)
            {
                SetD3D9Light( i, null );
            }

            _currentLights[activeDevice] = Utility.Min(limit, lightList.Count);
        }
D3DRenderSystem