Generate some type of mesh.
More...
#include <MeshGenerator.hpp>
|
| static RlMesh | genMeshCube (const float &width, const float &height, const float &length) |
| | Generate a mesh of a cube. More...
|
| |
| static RlMesh | genMeshCylinder (const float &radius, const float &height, const int &slices) |
| | Generate a mesh of a cylinder. More...
|
| |
| static RlMesh | genMeshCone (const float &radius, const float &height, const int &slices) |
| | Generate a mesh of a cone. More...
|
| |
| static RlMesh | genMeshSphere (const float &radius, const int &rings, const int &slices) |
| | Generate a mesh of a sphere. More...
|
| |
| static RlMesh | genMeshHemiSphere (const float &radius, const int &rings, const int &slices) |
| | Generate a mesh of an hemisphere. More...
|
| |
| static RlMesh | genMeshPlane (const float &width, const float &length, const int &resX, const int &resZ) |
| | Generate a mesh of a plane. More...
|
| |
| static RlMesh | genMeshTorus (const float &radius, const float &size, const int &radSeg, const int &sides) |
| | Generate a mesh of a torus. More...
|
| |
| static RlMesh | genMeshKnot (const float &radius, const float &size, const int &radSeg, const int &sides) |
| | Generate a mesh of a knot. More...
|
| |
| static RlMesh | genMeshHeightmap (const image::RlImage &heightMap, const Vector3f &size) |
| | Generate a mesh of a heightmap. More...
|
| |
| static RlMesh | genMeshPoly (const int &sides, const float &radius) |
| | Generate a mesh of a polygon. More...
|
| |
| static RlMesh | genMeshCubicmap (const image::RlImage &cubicmap, const Vector3f &cubeSize) |
| | Generate a mesh of a cubicmap. More...
|
| |
Generate some type of mesh.
◆ genMeshCone()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshCone |
( |
const float & |
radius, |
|
|
const float & |
height, |
|
|
const int & |
slices |
|
) |
| |
|
static |
Generate a mesh of a cone.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| radius | Radius of the cone |
| height | Height of the cone |
| slices | Number of slices |
- Returns
- Mesh of the cone
◆ genMeshCube()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshCube |
( |
const float & |
width, |
|
|
const float & |
height, |
|
|
const float & |
length |
|
) |
| |
|
static |
Generate a mesh of a cube.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| width | Width of the cube |
| height | Height of the cube |
| length | Length of the cube |
- Returns
- Mesh of the cube
◆ genMeshCubicmap()
Generate a mesh of a cubicmap.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| cubicmap | Cubicmap image |
| cubeSize | Size of the cubicmap |
- Returns
- Mesh of the cubicmap
◆ genMeshCylinder()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshCylinder |
( |
const float & |
radius, |
|
|
const float & |
height, |
|
|
const int & |
slices |
|
) |
| |
|
static |
Generate a mesh of a cylinder.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| radius | Radius of the cylinder |
| height | Height of the cylinder |
| slices | Number of slices |
- Returns
- Mesh of the cylinder
◆ genMeshHeightmap()
Generate a mesh of a heightmap.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| heightMap | Heightmap image |
| size | Size of the heightmap |
- Returns
- Mesh of the heightmap
◆ genMeshHemiSphere()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshHemiSphere |
( |
const float & |
radius, |
|
|
const int & |
rings, |
|
|
const int & |
slices |
|
) |
| |
|
static |
Generate a mesh of an hemisphere.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| radius | Radius of the hemisphere |
| rings | Number of rings |
| slices | Number of slices |
- Returns
- Mesh of the hemisphere
◆ genMeshKnot()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshKnot |
( |
const float & |
radius, |
|
|
const float & |
size, |
|
|
const int & |
radSeg, |
|
|
const int & |
sides |
|
) |
| |
|
static |
Generate a mesh of a knot.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| radius | Radius of the knot |
| size | Size of the knot |
| radSeg | Number of segments on the radius |
| sides | Number of sides |
- Returns
- Mesh of the knot
◆ genMeshPlane()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshPlane |
( |
const float & |
width, |
|
|
const float & |
length, |
|
|
const int & |
resX, |
|
|
const int & |
resZ |
|
) |
| |
|
static |
Generate a mesh of a plane.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| width | Width of the plane |
| length | Length of the plane |
| resX | resolution on the X axis |
| resZ | resolution on the Z axis |
- Returns
- Mesh of the plane
◆ genMeshPoly()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshPoly |
( |
const int & |
sides, |
|
|
const float & |
radius |
|
) |
| |
|
static |
Generate a mesh of a polygon.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| sides | Number of sides |
| radius | Radius of the polygon |
- Returns
- Mesh of the polygon
◆ genMeshSphere()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshSphere |
( |
const float & |
radius, |
|
|
const int & |
rings, |
|
|
const int & |
slices |
|
) |
| |
|
static |
Generate a mesh of a sphere.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| radius | Radius of the sphere |
| rings | Number of rings |
| slices | Number of slices |
- Returns
- Mesh of the sphere
◆ genMeshTorus()
| raylib::model::RlMesh raylib::model::MeshGenerator::genMeshTorus |
( |
const float & |
radius, |
|
|
const float & |
size, |
|
|
const int & |
radSeg, |
|
|
const int & |
sides |
|
) |
| |
|
static |
Generate a mesh of a torus.
- Warning
- Don't use this, instead use RlMeshBuilder
- Parameters
-
| radius | Radius of the torus |
| size | Size of the torus |
| radSeg | Number of segments on the radius |
| sides | Number of sides |
- Returns
- Mesh of the torus
The documentation for this class was generated from the following files: