Changed: Comments to fit doxygen standard.

This commit is contained in:
Foxar
2020-12-17 16:09:06 +01:00
parent 3c827a407b
commit bd11955fd4
+8 -8
View File
@@ -81,7 +81,7 @@ void ObjLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
switch (matches) switch (matches)
{ {
/* Vs, VTs and VNs all set */ /** Vs, VTs and VNs all set */
case 9: case 9:
{ {
fscanf(file, "%d/%d/%d %d/%d/%d %d/%d/%d\n", fscanf(file, "%d/%d/%d %d/%d/%d %d/%d/%d\n",
@@ -90,7 +90,7 @@ void ObjLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
&vertexIndex[2], &coordIndex[2], &normalIndex[2]); &vertexIndex[2], &coordIndex[2], &normalIndex[2]);
} }
break; break;
/* Loaded only two digits (V, VT) succesfuly. Not setting VN. */ /** Loaded only two digits (V, VT) succesfuly. Not setting VN. */
case 2: case 2:
{ {
fscanf(file, "%d/%d/ %d/%d/ %d/%d/\n", fscanf(file, "%d/%d/ %d/%d/ %d/%d/\n",
@@ -99,25 +99,25 @@ void ObjLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
&vertexIndex[2], &coordIndex[2]); &vertexIndex[2], &coordIndex[2]);
} }
break; break;
/* Only V set. Checking for existance of VT or VN. */ /** Only V set. Checking for existance of VT or VN. */
case 1: case 1:
{ {
/* Check for existance of V/// configuration.. */ /** Check for existance of V/// configuration.. */
newerMatches = fscanf(file, "%d/// %d/// %d///\n", x, x, x); newerMatches = fscanf(file, "%d/// %d/// %d///\n", x, x, x);
fsetpos(file, &start); fsetpos(file, &start);
if (newerMatches == 3) if (newerMatches == 3)
{ {
/* Configuration confirmed. */ /** Configuration confirmed. */
fscanf(file, "%d/// %d/// %d///\n", &vertexIndex[0], &vertexIndex[1], &vertexIndex[2]); fscanf(file, "%d/// %d/// %d///\n", &vertexIndex[0], &vertexIndex[1], &vertexIndex[2]);
} }
else else
{ {
/* Failed, checking configuration V//VN */ /** Failed, checking configuration V//VN */
newerMatches = fscanf(file, "%d//%d %d//%d %d//%d", x, x, x, x, x, x); newerMatches = fscanf(file, "%d//%d %d//%d %d//%d", x, x, x, x, x, x);
fsetpos(file, &start); fsetpos(file, &start);
if (newerMatches == 6) if (newerMatches == 6)
{ {
/* Configuration confirmed. */ /** Configuration confirmed. */
newerMatches = fscanf(file, "%d//%d %d//%d %d//%d", newerMatches = fscanf(file, "%d//%d %d//%d %d//%d",
&vertexIndex[0], &normalIndex[0], &vertexIndex[0], &normalIndex[0],
&vertexIndex[1], &normalIndex[1], &vertexIndex[1], &normalIndex[1],
@@ -125,7 +125,7 @@ void ObjLoader::load(MeshFrame *o_result, char *t_filename, float t_scale, u8 t_
} }
else else
{ {
/*Unknown configuration.*/ /**Unknown configuration.*/
PRINT_ERR("Unknown .obj face for .obj file!"); PRINT_ERR("Unknown .obj face for .obj file!");
} }
} }