Class RenderComponentPresentation
- Namespace
- AlphaFramework.Presentation
- Assembly
- AlphaFramework.Presentation.dll
Converts Render components into PositionableRenderables.
public static class RenderComponentPresentation
- Inheritance
-
objectRenderComponentPresentation
Methods
ApplyPropertiesFrom(PositionableRenderable, Mesh)
Applies the properties of a Mesh component to a PositionableRenderable.
public static void ApplyPropertiesFrom(this PositionableRenderable presentation, Mesh component)
Parameters
presentationPositionableRenderablecomponentMesh
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
componentAnimatedMeshengineEnginenamestring
Returns
- AnimatedModel
The presentation;
nullif 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
componentCpuParticleSystemnamestring
Returns
- CpuParticleSystem
The presentation;
nullif 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
componentLightSourcenamestring
Returns
Remarks
The component's shift becomes Offset, so it only takes effect once AttachedTo is set.
ToPresentation(Mesh, Engine, string?)
public static Model? ToPresentation(this Mesh component, Engine engine, string? name = null)
Parameters
Returns
- Model
The presentation;
nullif 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
componentTestSphereengineEnginenamestring