OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Static Public Member Functions | List of all members
OmegaEngine.Graphics.MeshHelper Class Reference

Provides helper methods for optimizing Meshes, calculating normal vectors, adding textures, etc. More...

Static Public Member Functions

static void Optimize (Mesh mesh)
 Performs an in-place optimization of a Mesh. More...
 
static void GenerateNormals (Device device, ref Mesh mesh)
 Generate normals if not present and convert into TangentVertex format for shaders. Tangent data is left empty More...
 
static void GenerateNormalsAndTangents (Device device, ref Mesh mesh, bool weldVertexes)
 Generate normals and tangents if not present and convert into TangentVertex format for shaders. More...
 

Detailed Description

Provides helper methods for optimizing Meshes, calculating normal vectors, adding textures, etc.

Member Function Documentation

static void OmegaEngine.Graphics.MeshHelper.GenerateNormals ( Device  device,
ref Mesh  mesh 
)
inlinestatic

Generate normals if not present and convert into TangentVertex format for shaders. Tangent data is left empty

Parameters
deviceThe Device containing the mesh
meshThe mesh to be manipulated
static void OmegaEngine.Graphics.MeshHelper.GenerateNormalsAndTangents ( Device  device,
ref Mesh  mesh,
bool  weldVertexes 
)
inlinestatic

Generate normals and tangents if not present and convert into TangentVertex format for shaders.

Parameters
deviceThe Device containing the mesh
meshThe mesh to be manipulated
weldVertexesWeld vertexes before generating tangents. Useful for organic objects, stones, trees, etc. (anything with a lot of round surfaces). If a lot of single faces are not connected on the texture (e.g. rockets, buildings, etc.) do not use.
static void OmegaEngine.Graphics.MeshHelper.Optimize ( Mesh  mesh)
inlinestatic

Performs an in-place optimization of a Mesh.

Parameters
meshThe Mesh to be optimized.

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