make plylib bugfix build also on gcc and clang
This commit is contained in:
parent
a0e7ed3d0a
commit
476d1c2d51
|
|
@ -3695,6 +3695,6 @@ void interpret_texture_name(const char*a, const char*fn, char*output){
|
||||||
output[io++]=a[ia++];
|
output[io++]=a[ia++];
|
||||||
};
|
};
|
||||||
output[io]=0;
|
output[io]=0;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -116,9 +116,35 @@ typedef FILE * GZFILE;
|
||||||
class PropDescriptor
|
class PropDescriptor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::string elemname = ""; // name of the element (e.g. vertex)
|
PropDescriptor() {}
|
||||||
std::string propname = ""; // name of the property (e.g. x, y, red...)
|
PropDescriptor
|
||||||
int stotype1 = -1; // Type of the property in the file
|
(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
|
int memtype1 = -1; // Type of the property in memory
|
||||||
size_t offset1 = 0; // Offset in memory
|
size_t offset1 = 0; // Offset in memory
|
||||||
bool islist = false; // true if the property is a list
|
bool islist = false; // true if the property is a list
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue