Class RenderComponentPresentation
- Namespace
- AlphaFramework.Presentation
- Assembly
- AlphaFramework.Presentation.dll
Converts Render components into PositionableRenderables.
public static class RenderComponentPresentation
- Inheritance
-
objectRenderComponentPresentation
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
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
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