mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 09:45:59 +08:00
Merge branch 'patch-1' of https://github.com/cemdervis/tinygltf into cemdervis-patch-1
This commit is contained in:
commit
87a76e1679
@ -135,7 +135,7 @@ static std::string PrintParameterType(int ty) {
|
||||
#endif
|
||||
|
||||
static std::string PrintWrapMode(int mode) {
|
||||
if (mode == TINYGLTF_TEXTURE_WRAP_RPEAT) {
|
||||
if (mode == TINYGLTF_TEXTURE_WRAP_REPEAT) {
|
||||
return "REPEAT";
|
||||
} else if (mode == TINYGLTF_TEXTURE_WRAP_CLAMP_TO_EDGE) {
|
||||
return "CLAMP_TO_EDGE";
|
||||
|
10
tiny_gltf.h
10
tiny_gltf.h
@ -68,7 +68,7 @@ namespace tinygltf {
|
||||
#define TINYGLTF_TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR (9986)
|
||||
#define TINYGLTF_TEXTURE_FILTER_LINEAR_MIPMAP_LINEAR (9987)
|
||||
|
||||
#define TINYGLTF_TEXTURE_WRAP_RPEAT (10497)
|
||||
#define TINYGLTF_TEXTURE_WRAP_REPEAT (10497)
|
||||
#define TINYGLTF_TEXTURE_WRAP_CLAMP_TO_EDGE (33071)
|
||||
#define TINYGLTF_TEXTURE_WRAP_MIRRORED_REPEAT (33648)
|
||||
|
||||
@ -341,8 +341,8 @@ struct Sampler {
|
||||
Value extras;
|
||||
|
||||
Sampler()
|
||||
: wrapS(TINYGLTF_TEXTURE_WRAP_RPEAT),
|
||||
wrapT(TINYGLTF_TEXTURE_WRAP_RPEAT) {}
|
||||
: wrapS(TINYGLTF_TEXTURE_WRAP_REPEAT),
|
||||
wrapT(TINYGLTF_TEXTURE_WRAP_REPEAT) {}
|
||||
};
|
||||
|
||||
struct Image {
|
||||
@ -2135,8 +2135,8 @@ static bool ParseSampler(Sampler *sampler, std::string *err,
|
||||
double minFilter =
|
||||
static_cast<double>(TINYGLTF_TEXTURE_FILTER_NEAREST_MIPMAP_LINEAR);
|
||||
double magFilter = static_cast<double>(TINYGLTF_TEXTURE_FILTER_LINEAR);
|
||||
double wrapS = static_cast<double>(TINYGLTF_TEXTURE_WRAP_RPEAT);
|
||||
double wrapT = static_cast<double>(TINYGLTF_TEXTURE_WRAP_RPEAT);
|
||||
double wrapS = static_cast<double>(TINYGLTF_TEXTURE_WRAP_REPEAT);
|
||||
double wrapT = static_cast<double>(TINYGLTF_TEXTURE_WRAP_REPEAT);
|
||||
ParseNumberProperty(&minFilter, err, o, "minFilter", false);
|
||||
ParseNumberProperty(&magFilter, err, o, "magFilter", false);
|
||||
ParseNumberProperty(&wrapS, err, o, "wrapS", false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user