mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-24 21:39:02 -05:00
Support stb_image based texture reader (closes #541)
This commit is contained in:
+1
-1
Submodule ext/ghoul updated: 1e338147f0...bf44d0bd2e
@@ -74,6 +74,10 @@
|
||||
#include <ghoul/io/texture/texturewritersoil.h>
|
||||
#endif //GHOUL_USE_SOIL
|
||||
|
||||
#ifdef GHOUL_USE_STB
|
||||
#include <ghoul/io/texture/texturereaderstb.h>
|
||||
#endif // GHOUL_USE_STB
|
||||
|
||||
#include <array>
|
||||
#include <stack>
|
||||
|
||||
@@ -404,6 +408,11 @@ void RenderEngine::initialize() {
|
||||
std::make_shared<ghoul::io::TextureWriterSOIL>()
|
||||
);
|
||||
#endif // GHOUL_USE_SOIL
|
||||
#ifdef GHOUL_USE_STB
|
||||
ghoul::io::TextureReader::ref().addReader(
|
||||
std::make_shared<ghoul::io::TextureReaderSTB>()
|
||||
);
|
||||
#endif
|
||||
|
||||
ghoul::io::TextureReader::ref().addReader(
|
||||
std::make_shared<ghoul::io::TextureReaderCMAP>()
|
||||
|
||||
Reference in New Issue
Block a user