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.

27 lines
684B

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