Encapsulation of the raylib Mesh.
More...
#include <RlMesh.hpp>
Encapsulation of the raylib Mesh.
◆ RlMesh() [1/2]
| raylib::model::RlMesh::RlMesh |
( |
const Mesh & |
mesh | ) |
|
|
explicit |
Creates a new RlMesh.
- Parameters
-
- Attention
- Don't use this, use the RlMeshBuilder instead
◆ RlMesh() [2/2]
| raylib::model::RlMesh::RlMesh |
( |
const RlMesh & |
mesh | ) |
|
Copy constructor (create a copy of the raylib Mesh)
- Parameters
-
◆ ~RlMesh()
| raylib::model::RlMesh::~RlMesh |
( |
| ) |
|
◆ exportMesh()
| bool raylib::model::RlMesh::exportMesh |
( |
const std::string & |
fileName | ) |
|
Export mesh data to file, returns true on success.
- Parameters
-
| fileName | the file name to export the mesh in |
- Returns
- true on success
◆ genBinormals()
| void raylib::model::RlMesh::genBinormals |
( |
| ) |
|
◆ genTangents()
| void raylib::model::RlMesh::genTangents |
( |
| ) |
|
◆ getBoundingBox()
| BoundingBox raylib::model::RlMesh::getBoundingBox |
( |
| ) |
|
Compute mesh bounding box limits.
- Parameters
-
| mesh | the mesh to compute the bounding box from |
- Returns
- the bounding box of the mesh
◆ getMesh()
| const Mesh & raylib::model::RlMesh::getMesh |
( |
| ) |
const |
Get the mesh.
- Returns
- the mesh
◆ getMeshSharedPtr()
| const std::shared_ptr< Mesh > & raylib::model::RlMesh::getMeshSharedPtr |
( |
| ) |
const |
Get the mesh shared ptr.
- Returns
- the mesh shared ptr
◆ operator=()
Assignment operator (Create a copy of the raylib Mesh)
- Parameters
-
- Returns
- the RlMesh
◆ updateBuffer()
| void raylib::model::RlMesh::updateBuffer |
( |
const int & |
index, |
|
|
void * |
data, |
|
|
const int & |
dataSize, |
|
|
const int & |
offset |
|
) |
| |
Update mesh vertex data in GPU for a specific buffer index.
- Parameters
-
| index | the buffer index to update |
| data | the new data to upload |
| dataSize | the size of the data to upload |
| offset | the offset to update |
◆ uploadInGPU()
| void raylib::model::RlMesh::uploadInGPU |
( |
const bool & |
dynamic | ) |
|
Upload mesh vertex data in GPU and provide VAO/VBO ids.
- Parameters
-
| dynamic | true if the mesh is dynamic |
The documentation for this class was generated from the following files: