Table of Contents

Class FloatingModel

Namespace
OmegaEngine.Graphics.Renderables
Assembly
OmegaEngine.dll

A Model that is rendered observing the Cameras view direction, but ignoring its position.

public class FloatingModel : Model, IDisposable, IPositionable
Inheritance
FloatingModel
Implements
Inherited Members
Extension Methods

Remarks

This kind of model effectively "floats" atop of the scene. This can be useful for things like direction widgets.

Constructors

FloatingModel(XMesh)

Creates a new floating model based upon a cached mesh, using its internal material data if available

public FloatingModel(XMesh mesh)

Parameters

mesh XMesh

The mesh to use for rendering

FloatingModel(XMesh, params XMaterial[])

Creates a new floating model based upon a cached mesh, using an external texture and a white material

public FloatingModel(XMesh mesh, params XMaterial[] materials)

Parameters

mesh XMesh

The mesh use for rendering

materials XMaterial[]

The materials to use for rendering the mesh

FloatingModel(Mesh, params XMaterial[])

Creates a new floating model based upon a custom mesh. Normals should be already calculated if they are required. Warning: The custom mesh and materials will be automatically disposed!

public FloatingModel(Mesh mesh, params XMaterial[] materials)

Parameters

mesh Mesh

The mesh use for rendering

materials XMaterial[]

The materials to use for rendering the mesh

See Also