Open Source Tomb Raider Engine
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

stb.cpp 477B

123456789101112131415161718192021222324
  1. /*!
  2. * \file src/deps/stb/stb.cpp
  3. * \brief stb implementation
  4. *
  5. * \author xythobuz
  6. */
  7. #include "global.h"
  8. #define STB_IMAGE_IMPLEMENTATION
  9. #define STBI_ASSERT(x) assert(x)
  10. #include "stb/stb_image.h"
  11. #define STB_IMAGE_WRITE_IMPLEMENTATION
  12. #include "stb/stb_image_write.h"
  13. #define STB_RECT_PACK_IMPLEMENTATION
  14. #define STBRP_ASSERT assert
  15. #include "stb/stb_rect_pack.h"
  16. #define STB_TRUETYPE_IMPLEMENTATION
  17. #define STBTT_assert(x) assert(x)
  18. #include "stb/stb_truetype.h"