Table of Contents

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

true if 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

lightScene Light3DSceneShared

The light scene.

Returns

bool

true if 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

technique IRenderTechnique

Returns

bool

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

lightScene Light3DSceneShared

The light scene.

idx int

The index.

Render(RenderContext, DeviceContextProxy)

Renders the specified context.

public override sealed void Render(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext

The context.

deviceContext DeviceContextProxy

The device context.