From 00c515f51afeafbd6b88d866bf430e42c3658b29 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Thu, 9 Jan 2020 15:39:02 +0200 Subject: [PATCH] Add glbinding build sample to Makefiles of GL3 examples. (#2870) --- examples/example_glfw_opengl3/Makefile | 4 ++++ examples/example_sdl_opengl3/Makefile | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/examples/example_glfw_opengl3/Makefile b/examples/example_glfw_opengl3/Makefile index f72f4669..f0160b19 100644 --- a/examples/example_glfw_opengl3/Makefile +++ b/examples/example_glfw_opengl3/Makefile @@ -41,6 +41,10 @@ CXXFLAGS += -I../libs/gl3w -DIMGUI_IMPL_OPENGL_LOADER_GL3W # SOURCES += ../libs/glad/src/glad.c # CXXFLAGS += -I../libs/glad/include -DIMGUI_IMPL_OPENGL_LOADER_GLAD +## Using OpenGL loader: glbinding +## (This assumes a system-wide installation) +# CXXFLAGS += -lglbinding -DIMGUI_IMPL_OPENGL_LOADER_GLBINDING + ##--------------------------------------------------------------------- ## BUILD FLAGS PER PLATFORM ##--------------------------------------------------------------------- diff --git a/examples/example_sdl_opengl3/Makefile b/examples/example_sdl_opengl3/Makefile index 12d8b57c..77140b5e 100644 --- a/examples/example_sdl_opengl3/Makefile +++ b/examples/example_sdl_opengl3/Makefile @@ -41,6 +41,10 @@ CXXFLAGS += -I../libs/gl3w -DIMGUI_IMPL_OPENGL_LOADER_GL3W # SOURCES += ../libs/glad/src/glad.c # CXXFLAGS += -I../libs/glad/include -DIMGUI_IMPL_OPENGL_LOADER_GLAD +## Using OpenGL loader: glbinding +## (This assumes a system-wide installation) +# CXXFLAGS += -lglbinding -DIMGUI_IMPL_OPENGL_LOADER_GLBINDING + ##--------------------------------------------------------------------- ## BUILD FLAGS PER PLATFORM ##---------------------------------------------------------------------