Class LightCoreBase
- Namespace
- HelixToolkit.SharpDX.Core
- Assembly
- HelixToolkit.SharpDX.dll
public abstract class LightCoreBase : RenderCore, IDisposable, IGUID, IThrowingShadow, ILight3D
- Inheritance
-
LightCoreBase
- Implements
- Derived
- Inherited Members
Constructors
LightCoreBase()
protected LightCoreBase()
Properties
Color
Gets or sets the color.
public Color4 Color { get; set; }
Property Value
- Color4
The color.
IsEmpty
Gets a value indicating whether this instance is empty.
public bool IsEmpty { get; }
Property Value
- bool
trueif this instance is empty; otherwise,false.
LightType
Gets or sets the type of the light.
public LightType LightType { get; protected set; }
Property Value
- LightType
The type of the light.
Methods
CanRender(Light3DSceneShared?)
Determines whether this instance can render the specified light scene.
protected virtual bool CanRender(Light3DSceneShared? lightScene)
Parameters
lightSceneLight3DSceneSharedThe light scene.
Returns
- bool
trueif this instance can render the specified light scene; otherwise,false.
OnAttach(IRenderTechnique?)
During attatching render core. Create all local resources. Use Collect(resource) to let object be released automatically during Detach().
protected override bool OnAttach(IRenderTechnique? technique)
Parameters
techniqueIRenderTechnique
Returns
OnDetach()
On detaching, default is to release all resources
protected override void OnDetach()
OnRender(Light3DSceneShared?, int)
Called when [render].
protected virtual void OnRender(Light3DSceneShared? lightScene, int idx)
Parameters
lightSceneLight3DSceneSharedThe light scene.
idxintThe index.
Render(RenderContext, DeviceContextProxy)
Renders the specified context.
public override sealed void Render(RenderContext context, DeviceContextProxy deviceContext)
Parameters
contextRenderContextThe context.
deviceContextDeviceContextProxyThe device context.