Interface ILightsBufferProxy<T>
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
public interface ILightsBufferProxy<T> where T : unmanaged
Type Parameters
T
Properties
AmbientLight
Gets or sets the ambient light.
Color4 AmbientLight { get; set; }
Property Value
- Color4
The ambient light.
BufferSize
Gets the size of the buffer.
int BufferSize { get; }
Property Value
- int
The size of the buffer.
LightCount
Gets the light count.
int LightCount { get; }
Property Value
- int
The light count.
Lights
Gets the light array
T[] Lights { get; }
Property Value
- T[]
The lights.
Methods
IncrementLightCount()
Increments the light count. Increment during each light render (except Ambient light).
void IncrementLightCount()
ResetLightCount()
Resets the light count. Must call before calling light render
void ResetLightCount()
UploadToBuffer(IBufferProxy, DeviceContextProxy)
Upload light models to constant buffer.
void UploadToBuffer(IBufferProxy buffer, DeviceContextProxy context)
Parameters
bufferIBufferProxyThe buffer.
contextDeviceContextProxyThe context.