Browse Source

allows for nanovg_gl prototypes to be declared simultaneously for multiple backends

shared-context
Andrew Corrigan 11 years ago
parent
commit
0ffc9d5d4e
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      src/nanovg_gl.h

+ 9
- 3
src/nanovg_gl.h View File

@@ -55,17 +55,23 @@ extern "C" {
struct NVGcontext* nvgCreateGL2(int atlasw, int atlash, int flags); struct NVGcontext* nvgCreateGL2(int atlasw, int atlash, int flags);
void nvgDeleteGL2(struct NVGcontext* ctx); void nvgDeleteGL2(struct NVGcontext* ctx);


#elif defined NANOVG_GL3
#endif

#if defined NANOVG_GL3


struct NVGcontext* nvgCreateGL3(int atlasw, int atlash, int flags); struct NVGcontext* nvgCreateGL3(int atlasw, int atlash, int flags);
void nvgDeleteGL3(struct NVGcontext* ctx); void nvgDeleteGL3(struct NVGcontext* ctx);


#elif defined NANOVG_GLES2
#endif

#if defined NANOVG_GLES2


struct NVGcontext* nvgCreateGLES2(int atlasw, int atlash, int edgeaa); struct NVGcontext* nvgCreateGLES2(int atlasw, int atlash, int edgeaa);
void nvgDeleteGLES2(struct NVGcontext* ctx); void nvgDeleteGLES2(struct NVGcontext* ctx);


#elif defined NANOVG_GLES3
#endif

#if defined NANOVG_GLES3


struct NVGcontext* nvgCreateGLES3(int atlasw, int atlash, int edgeaa); struct NVGcontext* nvgCreateGLES3(int atlasw, int atlash, int edgeaa);
void nvgDeleteGLES3(struct NVGcontext* ctx); void nvgDeleteGLES3(struct NVGcontext* ctx);


Loading…
Cancel
Save