Updated to api changes for recent gli and glm versions
This commit is contained in:
parent
ed8e8410b3
commit
90b8c82f75
8 changed files with 53 additions and 51 deletions
|
|
@ -83,12 +83,12 @@ namespace vkTools
|
|||
void *textureData = malloc(size);
|
||||
AAsset_read(asset, textureData, size);
|
||||
AAsset_close(asset);
|
||||
gli::texture2D heightTex(gli::load((const char*)textureData, size));
|
||||
gli::texture2d heightTex(gli::load((const char*)textureData, size));
|
||||
free(textureData);
|
||||
#else
|
||||
gli::texture2D heightTex(gli::load(filename));
|
||||
gli::texture2d heightTex(gli::load(filename));
|
||||
#endif
|
||||
dim = static_cast<uint32_t>(heightTex.dimensions().x);
|
||||
dim = static_cast<uint32_t>(heightTex.extent().x);
|
||||
heightdata = new uint16_t[dim * dim];
|
||||
memcpy(heightdata, heightTex.data(), heightTex.size());
|
||||
this->scale = dim / patchsize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue