Table of Contents

Class DynamicCubeMapCore

Namespace
HelixToolkit.SharpDX.Core
Assembly
HelixToolkit.SharpDX.dll
public class DynamicCubeMapCore : RenderCore, IDisposable, IGUID, IThrowingShadow, IDynamicReflector
Inheritance
DynamicCubeMapCore
Implements
Inherited Members

Constructors

DynamicCubeMapCore()

Initializes a new instance of the DynamicCubeMapCore class.

public DynamicCubeMapCore()

Properties

Center

Gets or sets the center.

public Vector3 Center { get; set; }

Property Value

Vector3

The center.

CubeMap

public ShaderResourceViewProxy? CubeMap { get; }

Property Value

ShaderResourceViewProxy

DefaultShaderPass

protected ShaderPass? DefaultShaderPass { get; }

Property Value

ShaderPass

DefaultShaderPassName

Name of the default pass inside a technique.

Default: Default

public string DefaultShaderPassName { get; set; }

Property Value

string

EnableReflector

Gets or sets a value indicating whether [enable reflector].

public bool EnableReflector { get; set; }

Property Value

bool

true if [enable reflector]; otherwise, false.

FaceSize

public int FaceSize { get; set; }

Property Value

int

FarField

Gets or sets the far field of perspective.

public float FarField { get; set; }

Property Value

float

The far field.

IgnoredGuid

public HashSet<Guid> IgnoredGuid { get; }

Property Value

HashSet<Guid>

IsDynamicScene

Gets or sets a value indicating whether this scene is dynamic scene. If true, reflection map will be updated in each frame. Otherwise it will only be updated if scene graph or visibility changed.

public bool IsDynamicScene { get; set; }

Property Value

bool

true if this instance is dynamic scene; otherwise, false.

IsLeftHanded

Gets or sets a value indicating whether this coordinate system is left handed.

public bool IsLeftHanded { get; set; }

Property Value

bool

true if this coordinate system is left handed; otherwise, false.

NearField

Gets or sets the near field of perspective.

public float NearField { get; set; }

Property Value

float

The near field.

SamplerDescription

Gets or sets the sampler description.

public SamplerStateDescription SamplerDescription { get; set; }

Property Value

SamplerStateDescription

The sampler description.

ShaderCubeTextureName

Gets or sets the name of the shader cube texture.

public string ShaderCubeTextureName { get; set; }

Property Value

string

The name of the shader cube texture.

ShaderCubeTextureSamplerName

Gets or sets the name of the shader cube texture sampler.

public string ShaderCubeTextureSamplerName { get; set; }

Property Value

string

The name of the shader cube texture sampler.

Methods

BindCubeMap(DeviceContextProxy)

Binds the cube map.

public void BindCubeMap(DeviceContextProxy deviceContext)

Parameters

deviceContext DeviceContextProxy

The device context.

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()

Render(RenderContext, DeviceContextProxy)

Render routine

public override void Render(RenderContext context, DeviceContextProxy deviceContext)

Parameters

context RenderContext
deviceContext DeviceContextProxy

UnBindCubeMap(DeviceContextProxy)

Uns the bind cube map.

public void UnBindCubeMap(DeviceContextProxy deviceContext)

Parameters

deviceContext DeviceContextProxy

The device context.