From 1d72bbd596922e7d70cb5999ecd2d3e1ba78aabd Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Fri, 19 Mar 2021 16:34:22 +0100 Subject: sokol_app.h, sokol_gfx.h: move Win32 GL loader from sokol_app.h to sokol_gfx.h --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'README.md') 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}); -- cgit v1.2.3