Class FloatingModel
- Namespace
- OmegaEngine.Graphics.Renderables
- Assembly
- OmegaEngine.dll
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
XMeshThe 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
XMeshThe 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
MeshThe mesh use for rendering
materials
XMaterial[]The materials to use for rendering the mesh