Pārlūkot izejas kodu

Review ExportMesh() header

pull/747/head
Ray pirms 5 gadiem
vecāks
revīzija
d0d81ea545
1 mainītis faili ar 12 papildinājumiem un 6 dzēšanām
  1. +12
    -6
      src/models.c

+ 12
- 6
src/models.c Parādīt failu

@ -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");

Notiek ielāde…
Atcelt
Saglabāt