Provides methods for creating meshes of simple geometric shapes (box, sphere, etc.) with texture coordinates.
More...
|
static Mesh | Quad (Device device, float width, float height) |
| Creates a new Mesh representing a textured 2D quad. More...
|
|
static Mesh | Box (Device device, float width, float height, float depth) |
| Creates a new Mesh representing a textured box. More...
|
|
static Mesh | Sphere (Device device, float radius, int slices, int stacks) |
| Creates a new Mesh representing a textured sphere with spherical mapping. More...
|
|
static Mesh | Cylinder (Device device, float radius1, float radius2, float length, int slices, int stacks) |
| Creates a new Mesh representing a textured cylinder with spherical mapping. More...
|
|
static Mesh | Disc (Device device, float radiusInner, float radiusOuter, float height, int segments) |
| Creates a model of a textured round disc with a hole in the middle. More...
|
|
Provides methods for creating meshes of simple geometric shapes (box, sphere, etc.) with texture coordinates.
◆ Box()
static Mesh OmegaEngine.Graphics.MeshGenerator.Box |
( |
Device |
device, |
|
|
float |
width, |
|
|
float |
height, |
|
|
float |
depth |
|
) |
| |
|
inlinestatic |
Creates a new Mesh representing a textured box.
- Parameters
-
device | The Device to create the Mesh in. |
width | The width of the box. |
height | The height of the box. |
depth | The depth of the box. |
The box is formed like the one created by Mesh.CreateBox.
◆ Cylinder()
static Mesh OmegaEngine.Graphics.MeshGenerator.Cylinder |
( |
Device |
device, |
|
|
float |
radius1, |
|
|
float |
radius2, |
|
|
float |
length, |
|
|
int |
slices, |
|
|
int |
stacks |
|
) |
| |
|
inlinestatic |
Creates a new Mesh representing a textured cylinder with spherical mapping.
- Parameters
-
device | The Device to create the mesh in. |
radius1 | The radius of the cylinder at the lower end (negative Z). |
radius2 | The radius of the cylinder at the upper end (positive Z). |
length | The length of the cylinder. |
slices | The number of vertical slices to divide the cylinder in. |
stacks | The number of horizontal stacks to divide the cylinder in. |
The cylinder is formed like the one created by Mesh.CreateCylinder.
◆ Disc()
static Mesh OmegaEngine.Graphics.MeshGenerator.Disc |
( |
Device |
device, |
|
|
float |
radiusInner, |
|
|
float |
radiusOuter, |
|
|
float |
height, |
|
|
int |
segments |
|
) |
| |
|
inlinestatic |
Creates a model of a textured round disc with a hole in the middle.
- Parameters
-
device | The Device to create the mesh in. |
radiusInner | The radius of the inner circle of the ring. |
radiusOuter | The radius of the outer circle of the ring. |
height | The height of the ring. |
segments | The number of segments the ring shall consist of. |
◆ Quad()
static Mesh OmegaEngine.Graphics.MeshGenerator.Quad |
( |
Device |
device, |
|
|
float |
width, |
|
|
float |
height |
|
) |
| |
|
inlinestatic |
Creates a new Mesh representing a textured 2D quad.
- Parameters
-
device | The Device to create the Mesh in. |
width | The width of the quad. |
height | The height of the quad. |
◆ Sphere()
static Mesh OmegaEngine.Graphics.MeshGenerator.Sphere |
( |
Device |
device, |
|
|
float |
radius, |
|
|
int |
slices, |
|
|
int |
stacks |
|
) |
| |
|
inlinestatic |
Creates a new Mesh representing a textured sphere with spherical mapping.
- Parameters
-
device | The Device to create the mesh in |
radius | The radius of the sphere. |
slices | The number of vertical slices to divide the sphere into. |
stacks | The number of horizontal stacks to divide the sphere into. |
The sphere is formed like the one created by Mesh.CreateSphere.
The documentation for this class was generated from the following file:
- OmegaEngine/Graphics/MeshGenerator.cs