Browse Source

Review ExportMesh() header

pull/747/head
Ray 5 years ago
parent
commit
d0d81ea545
1 changed files with 12 additions and 6 deletions
  1. +12
    -6
      src/models.c

+ 12
- 6
src/models.c View File

@ -680,12 +680,18 @@ void ExportMesh(Mesh mesh, const char *fileName)
{
FILE *objFile = fopen(fileName, "wt");
fprintf(objFile, "# raylib Mesh OBJ exporter v1.0\n\n");
fprintf(objFile, "# Mesh exported as triangle faces and not optimized.\n");
fprintf(objFile, "# Vertex Count: %i\n", mesh.vertexCount);
fprintf(objFile, "# Triangle Count: %i\n\n", mesh.triangleCount);
fprintf(objFile, "# LICENSE: zlib/libpng\n");
fprintf(objFile, "# Copyright (c) 2018 Ramon Santamaria (@raysan5)\n\n");
fprintf(objFile, "# //////////////////////////////////////////////////////////////////////////////////\n");
fprintf(objFile, "# // //\n");
fprintf(objFile, "# // rMeshOBJ exporter v1.0 - Mesh exported as triangle faces and not optimized //\n");
fprintf(objFile, "# // //\n");
fprintf(objFile, "# // more info and bugs-report: github.com/raysan5/raylib //\n");
fprintf(objFile, "# // feedback and support: ray[at]raylib.com //\n");
fprintf(objFile, "# // //\n");
fprintf(objFile, "# // Copyright (c) 2018 Ramon Santamaria (@raysan5) //\n");
fprintf(objFile, "# // //\n");
fprintf(objFile, "# //////////////////////////////////////////////////////////////////////////////////\n\n");
fprintf(objFile, "# Vertex Count: %i\n", mesh.vertexCount);
fprintf(objFile, "# Triangle Count: %i\n\n", mesh.triangleCount);
fprintf(objFile, "g mesh\n");

Loading…
Cancel
Save