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

ApplyPropertiesFrom(PositionableRenderable, Mesh)

Applies the properties of a Mesh component to a PositionableRenderable.

public static void ApplyPropertiesFrom(this PositionableRenderable presentation, Mesh component)

Parameters

presentation PositionableRenderable
component Mesh

Remarks

The component's shift becomes the renderable's local Position, i.e. an offset relative to its parent.

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

Remarks

The component's shift becomes Offset, so it only takes effect once AttachedTo is set.

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