diff options
| author | Andre Weissflog <floooh@gmail.com> | 2021-03-19 16:34:22 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2021-03-19 16:34:22 +0100 |
| commit | 1d72bbd596922e7d70cb5999ecd2d3e1ba78aabd (patch) | |
| tree | a3025bb40e8d3236a0a6c0f94e390332e110d6ed /README.md | |
| parent | c5d55faa1036af9919bd28400e97d37548bb3789 (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.md | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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}); |