AlphaFramework API  1.0.3
Public Member Functions | Properties | List of all members
AlphaFramework.World.Components.Mesh Class Reference

Represents a mesh loaded from a file. More...

Inheritance diagram for AlphaFramework.World.Components.Mesh:
AlphaFramework.World.Components.Render AlphaFramework.World.Components.AnimatedMesh AlphaFramework.World.Components.StaticMesh

Public Member Functions

override string ToString ()
 
- Public Member Functions inherited from AlphaFramework.World.Components.Render
override string ToString ()
 
Render Clone ()
 Creates a shallow copy of this Render More...
 

Properties

string Filename [get, set]
 The filename of the mesh-file to use for rendering. More...
 
float RotationX [get, set]
 How the mesh loaded from the file shall be rotated around the X axis (east to west). More...
 
float RotationY [get, set]
 How the mesh loaded from the file shall be rotated around the Y axis (top to bottom). More...
 
float RotationZ [get, set]
 How the mesh loaded from the file shall be rotated around the Z axis (north to south). More...
 
float Scale = 1 [get, set]
 A factor by which to scale the mesh loaded from the file. More...
 
int Alpha [get, set]
 The level of transparency from 0 (solid) to 255 (invisible), 256 for alpha channel, -256 for binary alpha channel, 257 for additive blending. More...
 
bool Pickable = true [get, set]
 Can this mesh be picked with the mouse? More...
 
ViewType RenderIn [get, set]
 In what kind of Views shall this mesh be rendered? More...
 
- Properties inherited from AlphaFramework.World.Components.Render
Vector3 Shift [get, set]
 How this component is to be shifted before rendering. More...
 
bool ShiftSpecified [get, set]
 Indicates whether Shift has been set to a non-default value. More...
 

Detailed Description

Represents a mesh loaded from a file.

See also
EntityTemplateBase<TSelf>.Render

Property Documentation

◆ Alpha

int AlphaFramework.World.Components.Mesh.Alpha
getset

The level of transparency from 0 (solid) to 255 (invisible), 256 for alpha channel, -256 for binary alpha channel, 257 for additive blending.

◆ Filename

string AlphaFramework.World.Components.Mesh.Filename
getset

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

◆ Pickable

bool AlphaFramework.World.Components.Mesh.Pickable = true
getset

Can this mesh be picked with the mouse?

◆ RenderIn

ViewType AlphaFramework.World.Components.Mesh.RenderIn
getset

In what kind of Views shall this mesh be rendered?

◆ RotationX

float AlphaFramework.World.Components.Mesh.RotationX
getset

How the mesh loaded from the file shall be rotated around the X axis (east to west).

◆ RotationY

float AlphaFramework.World.Components.Mesh.RotationY
getset

How the mesh loaded from the file shall be rotated around the Y axis (top to bottom).

◆ RotationZ

float AlphaFramework.World.Components.Mesh.RotationZ
getset

How the mesh loaded from the file shall be rotated around the Z axis (north to south).

◆ Scale

float AlphaFramework.World.Components.Mesh.Scale = 1
getset

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


The documentation for this class was generated from the following file: