|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Builder to create a RlMesh easily. More...
#include <RlMeshBuilder.hpp>


Public Types | |
| enum | MeshType { MeshPoly = Sides | Radius, MeshPlane = Width | Length | ResX | ResZ, MeshCube = Width | Height | Length, MeshSphere = Radius | Rings | Slices, MeshHemiSphere = Radius | HemisphereRings | Slices, MeshCylinder = Radius | Height | Slices, MeshCone = Radius | Height | ConeSlices, MeshTorus = Radius | Size | RadSeg | Sides, MeshKnot = Radius | Size | KnotRadSeg | Sides, MeshHeightmap = Heightmap | Vec3fSize, MeshCubicmap = Cubicmap | CubeSize } |
| Type of mesh. More... | |
Public Member Functions | |
| RlMeshBuilder () | |
| Construct a new RlMeshBuilder object. More... | |
| RlMeshBuilder & | setMeshType (const MeshType &meshType) |
| Set the mesh type. More... | |
| RlMeshBuilder & | setRadius (const float &radius) |
| Set the the radius of the sphere. More... | |
| RlMeshBuilder & | setWidth (const float &width) |
| Set the the width of the cube. More... | |
| RlMeshBuilder & | setLength (const float &length) |
| Set the the length. More... | |
| RlMeshBuilder & | setHeight (const float &height) |
| Set the the height of the cylinder. More... | |
| RlMeshBuilder & | setResX (const int &resX) |
| Set the the resolution of the plane. More... | |
| RlMeshBuilder & | setResZ (const int &resZ) |
| Set the the resolution of the plane. More... | |
| RlMeshBuilder & | setRings (const int &rings) |
| Set the number of rings for the sphere. More... | |
| RlMeshBuilder & | setHemisphereRings (const int &rings) |
| Set the number of rings for the hemisphere. More... | |
| RlMeshBuilder & | setSlices (const int &slices) |
| Set the number of slices for the sphere/hemisphere. More... | |
| RlMeshBuilder & | setConeSlices (const int &slices) |
| Set the number of slices for the cylinder. More... | |
| RlMeshBuilder & | setSize (const float &size) |
| Set the number of segments for the torus. More... | |
| RlMeshBuilder & | setRadSeg (const int &radSeg) |
| Set the number of segments for the torus. More... | |
| RlMeshBuilder & | setKnotRadSeg (const int &radSeg) |
| Set the number of segments for the knot. More... | |
| RlMeshBuilder & | setSides (const int &sides) |
| Set the sides. More... | |
| RlMeshBuilder & | setHeightmap (const image::RlImage &heightmap) |
| Set the heightmap. More... | |
| RlMeshBuilder & | setVec3fSize (const Vector3f &size) |
| Set the size. More... | |
| RlMeshBuilder & | setCubicmap (const image::RlImage &cubicmap) |
| Set the cubicmap. More... | |
| RlMeshBuilder & | setCubeSize (const Vector3f &cubeSize) |
| Set the size. More... | |
| model::RlMesh | build () override |
| Create a mesh. More... | |
Builder to create a RlMesh easily.
Type of mesh.
| raylib::builder::RlMeshBuilder::RlMeshBuilder | ( | ) |
Construct a new RlMeshBuilder object.
|
overridevirtual |
Create a mesh.
Implements raylib::builder::IBuilder< model::RlMesh >.

| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setConeSlices | ( | const int & | slices | ) |
Set the number of slices for the cylinder.
| slices | the number of slices for the cylinder |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setCubeSize | ( | const Vector3f & | cubeSize | ) |
Set the size.
| cubeSize | the size |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setCubicmap | ( | const image::RlImage & | cubicmap | ) |
Set the cubicmap.
| cubicmap | the cubicmap |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setHeight | ( | const float & | height | ) |
Set the the height of the cylinder.
| height | the height of the cylinder |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setHeightmap | ( | const image::RlImage & | heightmap | ) |
Set the heightmap.
| heightmap | the heightmap |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setHemisphereRings | ( | const int & | rings | ) |
Set the number of rings for the hemisphere.
| rings | the number of rings for the hemisphere |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setKnotRadSeg | ( | const int & | radSeg | ) |
Set the number of segments for the knot.
| radSeg | the number of segments for the knot |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setLength | ( | const float & | length | ) |
Set the the length.
| length | the length |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setMeshType | ( | const MeshType & | meshType | ) |
Set the mesh type.
| meshType | type of mesh |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setRadius | ( | const float & | radius | ) |
Set the the radius of the sphere.
| radius | the radius of the sphere |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setRadSeg | ( | const int & | radSeg | ) |
Set the number of segments for the torus.
| radSeg | the number of segments for the torus |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setResX | ( | const int & | resX | ) |
Set the the resolution of the plane.
| resX | the resolution of the plane on the X axis |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setResZ | ( | const int & | resZ | ) |
Set the the resolution of the plane.
| resZ | the resolution of the plane on the Z axis |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setRings | ( | const int & | rings | ) |
Set the number of rings for the sphere.
| rings | the number of rings for the sphere |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setSides | ( | const int & | sides | ) |
Set the sides.
| sides | the number of sides |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setSize | ( | const float & | size | ) |
Set the number of segments for the torus.
| size | the number of segments for the torus |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setSlices | ( | const int & | slices | ) |
Set the number of slices for the sphere/hemisphere.
| slices | the number of slices for the sphere/hemisphere |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setVec3fSize | ( | const Vector3f & | size | ) |
| raylib::builder::RlMeshBuilder & raylib::builder::RlMeshBuilder::setWidth | ( | const float & | width | ) |
Set the the width of the cube.
| width | the width of the cube |
1.8.17