Table of Contents

Class Mesh

Namespace
AlphaFramework.World.Components
Assembly
AlphaFramework.World.dll

Represents a mesh loaded from a file.

public abstract class Mesh : Render, ICloneable
Inheritance
object
Mesh
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

int

Filename

The filename of the mesh-file to use for rendering.

public string? Filename { get; set; }

Property Value

string

Pickable

Can this mesh be picked with the mouse?

public bool Pickable { get; set; }

Property Value

bool

RenderIn

In what kind of Views shall this mesh be rendered?

public ViewType RenderIn { get; set; }

Property Value

ViewType

Rotation

How the mesh loaded from the file shall be rotated.

public Rotation Rotation { get; set; }

Property Value

Rotation

Scale

A factor by which to scale the mesh loaded from the file.

public float Scale { get; set; }

Property Value

float

ShadowCaster

Shall this mesh cast shadows on other objects?

public bool ShadowCaster { get; set; }

Property Value

bool

ShadowReceiver

Shall this mesh receive shadows from other objects?

public bool ShadowReceiver { get; set; }

Property Value

bool

Methods

CloneFromTo(Mesh, Mesh)

Copies all members declared by Mesh from one instance to another.

protected static void CloneFromTo(Mesh from, Mesh to)

Parameters

from Mesh
to Mesh

ShouldSerializeRotation()

Used for XML serialization.

public bool ShouldSerializeRotation()

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

See Also