aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2021-03-19 16:34:22 +0100
committerAndre Weissflog <floooh@gmail.com>2021-03-19 16:34:22 +0100
commit1d72bbd596922e7d70cb5999ecd2d3e1ba78aabd (patch)
treea3025bb40e8d3236a0a6c0f94e390332e110d6ed /README.md
parentc5d55faa1036af9919bd28400e97d37548bb3789 (diff)
sokol_app.h, sokol_gfx.h: move Win32 GL loader from sokol_app.h to sokol_gfx.h
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index f2e742ac..facac207 100644
--- a/README.md
+++ b/README.md
@@ -71,15 +71,14 @@ A blog post with more background info: [A Tour of sokol_gfx.h](http://floooh.git
- does *not* provide shader dialect cross-translation (**BUT** there's now an 'official' shader-cross-compiler solution which
seamlessly integrates with sokol_gfx.h and IDEs: [see here for details](https://github.com/floooh/sokol-tools/blob/master/docs/sokol-shdc.md)
-A triangle in C99 with GLFW and FlextGL:
+A triangle in C99 with GLFW:
```c
-#define GLFW_INCLUDE_NONE
-#include "GLFW/glfw3.h"
-#include "flextgl/flextGL.h"
#define SOKOL_IMPL
#define SOKOL_GLCORE33
#include "sokol_gfx.h"
+#define GLFW_INCLUDE_NONE
+#include "GLFW/glfw3.h"
int main() {
@@ -92,7 +91,6 @@ int main() {
GLFWwindow* w = glfwCreateWindow(640, 480, "Sokol Triangle GLFW", 0, 0);
glfwMakeContextCurrent(w);
glfwSwapInterval(1);
- flextInit();
/* setup sokol_gfx */
sg_setup(&(sg_desc){0});