This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
nanovg
mirror of
https://github.com/VCVRack/nanovg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Merge pull request
#359
from olliwang/glext
Fixes how glext header is included.
shared-context
Mikko Mononen
GitHub
8 years ago
parent
51284049e2
4ac2b44ea7
commit
c75fc0bfcf
5 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
example/example_gl2.c
+1
-0
example/example_gl3.c
+1
-0
example/example_gles2.c
+1
-0
example/example_gles3.c
+0
-4
src/nanovg_gl.h
+ 1
- 0
example/example_gl2.c
View File
@@ -20,6 +20,7 @@
#ifdef NANOVG_GLEW
# include <GL/glew.h>
#endif
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>
#include "nanovg.h"
#define NANOVG_GL2_IMPLEMENTATION
+ 1
- 0
example/example_gl3.c
View File
@@ -23,6 +23,7 @@
#ifdef __APPLE__
# define GLFW_INCLUDE_GLCOREARB
#endif
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>
#include "nanovg.h"
#define NANOVG_GL3_IMPLEMENTATION
+ 1
- 0
example/example_gles2.c
View File
@@ -18,6 +18,7 @@
#include <stdio.h>
#define GLFW_INCLUDE_ES2
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>
#include "nanovg.h"
#define NANOVG_GLES2_IMPLEMENTATION
+ 1
- 0
example/example_gles3.c
View File
@@ -18,6 +18,7 @@
#include <stdio.h>
#define GLFW_INCLUDE_ES3
#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>
#include "nanovg.h"
#define NANOVG_GLES3_IMPLEMENTATION
+ 0
- 4
src/nanovg_gl.h
View File
@@ -113,10 +113,6 @@ enum NVGimageFlagsGL {
#include <math.h>
#include "nanovg.h"
#ifdef __APPLE__
# include <OpenGL/glext.h>
#endif
enum GLNVGuniformLoc {
GLNVG_LOC_VIEWSIZE,
GLNVG_LOC_TEX,
Write
Preview
Loading…
Cancel
Save