diff options
| author | Ray <[email protected]> | 2023-11-30 13:01:19 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-11-30 13:01:19 +0100 |
| commit | 6b136fac679a2dad30cce1abda9613b499ee4d5c (patch) | |
| tree | ff51687db14b4880d677418faa08a07caea681ed /src/raylib.h | |
| parent | e84099bfd42669250a5df4b29f8ffebbd21fbc82 (diff) | |
| download | raylib-6b136fac679a2dad30cce1abda9613b499ee4d5c.tar.gz raylib-6b136fac679a2dad30cce1abda9613b499ee4d5c.zip | |
ADDED: `ExportMeshAsCode()`
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 2bbbef00..fd870c18 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1536,9 +1536,10 @@ RLAPI void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize RLAPI void UnloadMesh(Mesh mesh); // Unload mesh data from CPU and GPU RLAPI void DrawMesh(Mesh mesh, Material material, Matrix transform); // Draw a 3d mesh with material and transform RLAPI void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances); // Draw multiple mesh instances with material and different transforms -RLAPI bool ExportMesh(Mesh mesh, const char *fileName); // Export mesh data to file, returns true on success RLAPI BoundingBox GetMeshBoundingBox(Mesh mesh); // Compute mesh bounding box limits RLAPI void GenMeshTangents(Mesh *mesh); // Compute mesh tangents +RLAPI bool ExportMesh(Mesh mesh, const char *fileName); // Export mesh data to file, returns true on success +RLAPI bool ExportMeshAsCode(Mesh mesh, const char *fileName); // Export mesh as code file (.h) defining multiple arrays of vertex attributes // Mesh generation functions RLAPI Mesh GenMeshPoly(int sides, float radius); // Generate polygonal mesh |
