Table of Contents

Class RenderComponentPresentation

Namespace
AlphaFramework.Presentation
Assembly
AlphaFramework.Presentation.dll

Converts Render components into PositionableRenderables.

public static class RenderComponentPresentation
Inheritance
object
RenderComponentPresentation

Methods

ToPresentation(AnimatedMesh, Engine, string?)

Creates a AnimatedModel from an AnimatedMesh component.

public static AnimatedModel? ToPresentation(this AnimatedMesh component, Engine engine, string? name = null)

Parameters

component AnimatedMesh
engine Engine
name string

Returns

AnimatedModel

The presentation; null if the component configuration is incomplete.

ToPresentation(CpuParticleSystem, string?)

Creates a CpuParticleSystem from a CpuParticleSystem component.

public static CpuParticleSystem? ToPresentation(this CpuParticleSystem component, string? name = null)

Parameters

component CpuParticleSystem
name string

Returns

CpuParticleSystem

The presentation; null if the component configuration is incomplete.

ToPresentation(LightSource, string?)

Creates a PointLight from a LightSource component.

public static PointLight ToPresentation(this LightSource component, string? name = null)

Parameters

component LightSource
name string

Returns

PointLight

ToPresentation(Mesh, Engine, string?)

Creates a Model from a Mesh component.

public static Model? ToPresentation(this Mesh component, Engine engine, string? name = null)

Parameters

component Mesh
engine Engine
name string

Returns

Model

The presentation; null if the component configuration is incomplete.

ToPresentation(TestSphere, Engine, string?)

Creates a Model from a TestSphere component.

public static Model ToPresentation(this TestSphere component, Engine engine, string? name = null)

Parameters

component TestSphere
engine Engine
name string

Returns

Model