You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
743B

  1. // This source file compiles those annoying implementation-in-header libraries
  2. #include <common.hpp> // for fopen_u8
  3. #define GLEW_STATIC
  4. #define GLEW_NO_GLU
  5. #include <GL/glew.h>
  6. #include <nanovg.h>
  7. #define NANOVG_GL2_IMPLEMENTATION
  8. // #define NANOVG_GL3_IMPLEMENTATION
  9. // #define NANOVG_GLES2_IMPLEMENTATION
  10. // #define NANOVG_GLES3_IMPLEMENTATION
  11. #include <nanovg_gl.h>
  12. // Hack to get framebuffer objects working on OpenGL 2 (we blindly assume the extension is supported)
  13. #define NANOVG_FBO_VALID
  14. #include <nanovg_gl_utils.h>
  15. #define BLENDISH_IMPLEMENTATION
  16. #include <blendish.h>
  17. #define NANOSVG_IMPLEMENTATION
  18. #define NANOSVG_ALL_COLOR_KEYWORDS
  19. #include <nanosvg.h>
  20. #define STB_IMAGE_WRITE_IMPLEMENTATION
  21. #include <stb_image_write.h>