From 0ffc9d5d4e30ade258b3de5490d07beabd16d677 Mon Sep 17 00:00:00 2001 From: Andrew Corrigan Date: Sat, 21 Jun 2014 19:53:47 -0400 Subject: [PATCH] allows for nanovg_gl prototypes to be declared simultaneously for multiple backends --- src/nanovg_gl.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/nanovg_gl.h b/src/nanovg_gl.h index 2c13228..3a14d71 100644 --- a/src/nanovg_gl.h +++ b/src/nanovg_gl.h @@ -55,17 +55,23 @@ extern "C" { struct NVGcontext* nvgCreateGL2(int atlasw, int atlash, int flags); void nvgDeleteGL2(struct NVGcontext* ctx); -#elif defined NANOVG_GL3 +#endif + +#if defined NANOVG_GL3 struct NVGcontext* nvgCreateGL3(int atlasw, int atlash, int flags); void nvgDeleteGL3(struct NVGcontext* ctx); -#elif defined NANOVG_GLES2 +#endif + +#if defined NANOVG_GLES2 struct NVGcontext* nvgCreateGLES2(int atlasw, int atlash, int edgeaa); void nvgDeleteGLES2(struct NVGcontext* ctx); -#elif defined NANOVG_GLES3 +#endif + +#if defined NANOVG_GLES3 struct NVGcontext* nvgCreateGLES3(int atlasw, int atlash, int edgeaa); void nvgDeleteGLES3(struct NVGcontext* ctx);