make plylib bugfix build also on gcc and clang

This commit is contained in:
alemuntoni 2021-10-26 11:22:20 +02:00
parent a0e7ed3d0a
commit 476d1c2d51
2 changed files with 30 additions and 4 deletions

View File

@ -3695,6 +3695,6 @@ void interpret_texture_name(const char*a, const char*fn, char*output){
output[io++]=a[ia++];
};
output[io]=0;
};
}
}
}

View File

@ -116,9 +116,35 @@ typedef FILE * GZFILE;
class PropDescriptor
{
public:
std::string elemname = ""; // name of the element (e.g. vertex)
std::string propname = ""; // name of the property (e.g. x, y, red...)
int stotype1 = -1; // Type of the property in the file
PropDescriptor() {}
PropDescriptor
(std::string elemname,
std::string propname,
int stotype1,
int memtype1,
size_t offset1,
bool islist,
bool alloclist,
int stotype2,
int memtype2,
size_t offset2,
int format) :
elemname(elemname),
propname(propname),
stotype1(stotype1),
memtype1(memtype1),
offset1(offset1),
islist(islist),
alloclist(alloclist),
stotype2(stotype2),
memtype2(memtype2),
offset2(offset2),
format(format)
{
}
std::string elemname; // name of the element (e.g. vertex)
std::string propname; // name of the property (e.g. x, y, red...)
int stotype1 = -1; // Type of the property in the file
int memtype1 = -1; // Type of the property in memory
size_t offset1 = 0; // Offset in memory
bool islist = false; // true if the property is a list