mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-09 19:38:30 +01:00
backend_test: use custom imgui gl3w
This commit is contained in:
@@ -52,7 +52,7 @@ if(IMGUI_FREETYPE)
|
||||
endif(IMGUI_FREETYPE)
|
||||
|
||||
#opengl3
|
||||
list(APPEND IMGUI_SOURCES ${BAKENDS_FOLDER}imgui_impl_opengl3.cpp ../imgui/examples/libs/gl3w/GL/gl3w.c)
|
||||
list(APPEND IMGUI_SOURCES ${BAKENDS_FOLDER}imgui_impl_opengl3.cpp)
|
||||
list(APPEND IMGUI_SOURCES ./cimgui_extras.cpp)
|
||||
include_directories(../imgui/examples/libs/gl3w)
|
||||
if(WIN32)
|
||||
|
@@ -1,11 +1,10 @@
|
||||
#include "../imgui/imgui.h"
|
||||
|
||||
// GL3W/GLFW
|
||||
#include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you.
|
||||
#include "../imgui/backends/imgui_impl_opengl3_loader.h"
|
||||
|
||||
//making it accesible for luajit
|
||||
#ifdef _WIN32
|
||||
extern "C" __declspec( dllexport ) int Do_gl3wInit(void){ return gl3wInit();};
|
||||
extern "C" __declspec( dllexport ) int Do_gl3wInit(void){ return imgl3wInit();};
|
||||
#else
|
||||
extern "C" int Do_gl3wInit(void){ return gl3wInit();};
|
||||
extern "C" int Do_gl3wInit(void){ return imgl3wInit();};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user