diff --git a/src/stb.cpp b/src/stb.cpp new file mode 100644 index 0000000..9a5f26f --- /dev/null +++ b/src/stb.cpp @@ -0,0 +1,4 @@ +#define STB_IMAGE_IMPLEMENTATION +#define STBI_ASSERT(x) +#define STBI_ONLY_PNG +#include diff --git a/src/texture.cpp b/src/texture.cpp index 1c0f6b1..31c1baa 100644 --- a/src/texture.cpp +++ b/src/texture.cpp @@ -2,9 +2,6 @@ #include -#define STB_IMAGE_IMPLEMENTATION -#define STBI_ASSERT(x) -#define STBI_ONLY_PNG #include const std::string Texture::filename(const std::string &name)