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.

28 lines
704B

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