From 0fb1573e3acfd92b02c5fafc819de734a4dee502 Mon Sep 17 00:00:00 2001 From: Meoweg Date: Mon, 16 Nov 2015 17:14:31 +0000 Subject: [PATCH] Add separate file for STB implementations --- src/stb.cpp | 4 ++++ src/texture.cpp | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 src/stb.cpp 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)