Add separate file for STB implementations
This commit is contained in:
parent
d94913984d
commit
0fb1573e3a
2 changed files with 4 additions and 3 deletions
4
src/stb.cpp
Normal file
4
src/stb.cpp
Normal file
|
@ -0,0 +1,4 @@
|
|||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#define STBI_ASSERT(x)
|
||||
#define STBI_ONLY_PNG
|
||||
#include <stb_image.h>
|
|
@ -2,9 +2,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#define STBI_ASSERT(x)
|
||||
#define STBI_ONLY_PNG
|
||||
#include <stb_image.h>
|
||||
|
||||
const std::string Texture::filename(const std::string &name)
|
||||
|
|
Reference in a new issue