Ver código fonte

easymesh: comment out a lot of code that was just causing compilation warnings

legacy
Sam Hocevar 5 anos atrás
pai
commit
b095015731
1 arquivos alterados com 14 adições e 6 exclusões
  1. +14
    -6
      src/easymesh/easymeshbuild.h

+ 14
- 6
src/easymesh/easymeshbuild.h Ver arquivo

@@ -339,14 +339,16 @@ public:
/* unused for now, but will be if new BuildType are added. */
TexCoordBuildType tcbt = GetTexCoordBuildType(mt);
UNUSED(tcbt);
if (mt == MeshType::Triangle)
mt = mt;
else if (mt == MeshType::Quad)
if (mt == MeshType::Quad)
{
// There's nothin' else than QuadDefault
BL = vec2(0.f);
TR = vec2(1.f);
}
#if 0
else if (mt == MeshType::Triangle)
mt = mt;
#endif
else if (mt == MeshType::Box)
{
vec2 data[][2] =
@@ -361,6 +363,7 @@ public:
BL = data[face.ToScalar()][0]; // [tcbt]
TR = data[face.ToScalar()][1]; // [tcbt]
}
#if 0
else if (mt == MeshType::Sphere)
mt = mt;
else if (mt == MeshType::Capsule)
@@ -377,6 +380,7 @@ public:
mt = mt;
else if (mt == MeshType::Cog)
mt = mt;
#endif
}

vec2 res = vec2(.0f);
@@ -425,14 +429,16 @@ public:
{
TexCoordBuildType tcbt = GetTexCoordBuildType2(mt);
UNUSED(tcbt);
if (mt == MeshType::Triangle)
mt = mt;
else if (mt == MeshType::Quad)
if (mt == MeshType::Quad)
{
// There's nothin' else than QuadDefault
BL = vec2(0.f);
TR = vec2(1.f);
}
#if 0
else if (mt == MeshType::Triangle)
mt = mt;
#endif
else if (mt == MeshType::Box)
{
vec2 data[][2] =
@@ -447,6 +453,7 @@ public:
BL = data[face.ToScalar()][0]; // [tcbt]
TR = data[face.ToScalar()][1]; // [tcbt]
}
#if 0
else if (mt == MeshType::Sphere)
mt = mt;
else if (mt == MeshType::Capsule)
@@ -463,6 +470,7 @@ public:
mt = mt;
else if (mt == MeshType::Cog)
mt = mt;
#endif
}

vec2 res = vec2(.0f);


Carregando…
Cancelar
Salvar