Raylib C++  1.0.0
Encapsulates the raylib library
Static Public Member Functions | List of all members
raylib::model::MeshGenerator Class Reference

Generate some type of mesh. More...

#include <MeshGenerator.hpp>

Collaboration diagram for raylib::model::MeshGenerator:
Collaboration graph

Static Public Member Functions

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...
 

Detailed Description

Generate some type of mesh.

Member Function Documentation

◆ 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
radiusRadius of the cone
heightHeight of the cone
slicesNumber of slices
Returns
Mesh of the cone
Here is the caller graph for this function:

◆ 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
widthWidth of the cube
heightHeight of the cube
lengthLength of the cube
Returns
Mesh of the cube
Here is the caller graph for this function:

◆ genMeshCubicmap()

raylib::model::RlMesh raylib::model::MeshGenerator::genMeshCubicmap ( const image::RlImage cubicmap,
const Vector3f cubeSize 
)
static

Generate a mesh of a cubicmap.

Warning
Don't use this, instead use RlMeshBuilder
Parameters
cubicmapCubicmap image
cubeSizeSize of the cubicmap
Returns
Mesh of the cubicmap
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
radiusRadius of the cylinder
heightHeight of the cylinder
slicesNumber of slices
Returns
Mesh of the cylinder
Here is the caller graph for this function:

◆ genMeshHeightmap()

raylib::model::RlMesh raylib::model::MeshGenerator::genMeshHeightmap ( const image::RlImage heightMap,
const Vector3f size 
)
static

Generate a mesh of a heightmap.

Warning
Don't use this, instead use RlMeshBuilder
Parameters
heightMapHeightmap image
sizeSize of the heightmap
Returns
Mesh of the heightmap
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
radiusRadius of the hemisphere
ringsNumber of rings
slicesNumber of slices
Returns
Mesh of the hemisphere
Here is the caller graph for this function:

◆ 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
radiusRadius of the knot
sizeSize of the knot
radSegNumber of segments on the radius
sidesNumber of sides
Returns
Mesh of the knot
Here is the caller graph for this function:

◆ 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
widthWidth of the plane
lengthLength of the plane
resXresolution on the X axis
resZresolution on the Z axis
Returns
Mesh of the plane
Here is the caller graph for this function:

◆ 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
sidesNumber of sides
radiusRadius of the polygon
Returns
Mesh of the polygon
Here is the caller graph for this function:

◆ 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
radiusRadius of the sphere
ringsNumber of rings
slicesNumber of slices
Returns
Mesh of the sphere
Here is the caller graph for this function:

◆ 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
radiusRadius of the torus
sizeSize of the torus
radSegNumber of segments on the radius
sidesNumber of sides
Returns
Mesh of the torus
Here is the caller graph for this function:

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