Skip to content

Commit a44815e

Browse files
committed
REMOVED: GenMeshDefault()
1 parent 7ad1738 commit a44815e

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

src/models.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,25 +1522,6 @@ bool IsModelAnimationValid(Model model, ModelAnimation anim)
15221522
}
15231523

15241524
#if defined(SUPPORT_MESH_GENERATION)
1525-
Mesh GenMeshDefault(int vertexCount)
1526-
{
1527-
Mesh mesh = { 0 };
1528-
1529-
mesh.vertexCount = vertexCount;
1530-
mesh.triangleCount = vertexCount/3;
1531-
1532-
mesh.vertices = (float *)RL_CALLOC(mesh.vertexCount*3, sizeof(float));
1533-
mesh.texcoords = (float *)RL_CALLOC(mesh.vertexCount*2, sizeof(float));
1534-
mesh.normals = (float *)RL_CALLOC(mesh.vertexCount*3, sizeof(float));
1535-
mesh.colors = (unsigned char *)RL_CALLOC(mesh.vertexCount*4, sizeof(unsigned char));
1536-
1537-
// Upload vertex data to GPU (dynamic mesh)
1538-
// NOTE: mesh.vboId array is allocated inside UploadMesh()
1539-
UploadMesh(&mesh, true);
1540-
1541-
return mesh;
1542-
}
1543-
15441525
// Generate polygonal mesh
15451526
Mesh GenMeshPoly(int sides, float radius)
15461527
{

src/raylib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,6 @@ RLAPI void UnloadModelAnimations(ModelAnimation* animations, unsigned int count)
14081408
RLAPI bool IsModelAnimationValid(Model model, ModelAnimation anim); // Check model animation skeleton match
14091409

14101410
// Mesh generation functions
1411-
RLAPI Mesh GenMeshDefault(int vertexCount); // Generate an empty mesh with vertex: position, texcoords, normals, colors
14121411
RLAPI Mesh GenMeshPoly(int sides, float radius); // Generate polygonal mesh
14131412
RLAPI Mesh GenMeshPlane(float width, float length, int resX, int resZ); // Generate plane mesh (with subdivisions)
14141413
RLAPI Mesh GenMeshCube(float width, float height, float length); // Generate cuboid mesh

0 commit comments

Comments
 (0)