Class Mesh
- Namespace
- AlphaFramework.World.Components
- Assembly
- AlphaFramework.World.dll
Represents a mesh loaded from a file.
public abstract class Mesh : Render, ICloneable
- Inheritance
-
objectMesh
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Alpha
The level of transparency from 0 (solid) to 255 (invisible), 256 for alpha channel, -256 for binary alpha channel, 257 for additive blending.
public int Alpha { get; set; }
Property Value
Filename
The filename of the mesh-file to use for rendering.
public string? Filename { get; set; }
Property Value
Pickable
Can this mesh be picked with the mouse?
public bool Pickable { get; set; }
Property Value
RenderIn
In what kind of Views shall this mesh be rendered?
public ViewType RenderIn { get; set; }
Property Value
Rotation
How the mesh loaded from the file shall be rotated.
public Rotation Rotation { get; set; }
Property Value
Scale
A factor by which to scale the mesh loaded from the file.
public float Scale { get; set; }
Property Value
ShadowCaster
Shall this mesh cast shadows on other objects?
public bool ShadowCaster { get; set; }
Property Value
ShadowReceiver
Shall this mesh receive shadows from other objects?
public bool ShadowReceiver { get; set; }
Property Value
Methods
CloneFromTo(Mesh, Mesh)
Copies all members declared by Mesh from one instance to another.
protected static void CloneFromTo(Mesh from, Mesh to)
Parameters
ShouldSerializeRotation()
Used for XML serialization.
public bool ShouldSerializeRotation()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.