[nostalgia] Upgrade ImGui version to 1.86
This commit is contained in:
parent
f6be36741c
commit
35433563c6
@ -2,7 +2,7 @@ from conans import ConanFile, CMake
|
||||
|
||||
class NostalgiaConan(ConanFile):
|
||||
settings = 'os', 'compiler', 'build_type', 'arch'
|
||||
requires = 'jsoncpp/1.9.4', 'glfw/3.3.4', 'imgui/1.83'
|
||||
requires = 'jsoncpp/1.9.4', 'glfw/3.3.4', 'imgui/1.86'
|
||||
generators = 'cmake', 'cmake_find_package', 'cmake_paths'
|
||||
default_options = {
|
||||
}
|
||||
@ -12,3 +12,4 @@ class NostalgiaConan(ConanFile):
|
||||
self.copy('imgui_impl_opengl3.cpp', dst='../deps/imgui/src', src='./res/bindings')
|
||||
self.copy('imgui_impl_glfw.h', dst='../deps/imgui/src', src='./res/bindings')
|
||||
self.copy('imgui_impl_opengl3.h', dst='../deps/imgui/src', src='./res/bindings')
|
||||
self.copy('imgui_impl_opengl3_loader.h', dst='../deps/imgui/src', src='./res/bindings')
|
||||
|
12
deps/imgui/CMakeLists.txt
vendored
12
deps/imgui/CMakeLists.txt
vendored
@ -7,18 +7,6 @@ add_library(
|
||||
find_package(glfw3 REQUIRED)
|
||||
find_package(imgui REQUIRED)
|
||||
|
||||
if(APPLE)
|
||||
target_compile_definitions(
|
||||
imgui-glfw PRIVATE
|
||||
IMGUI_IMPL_OPENGL_LOADER_CUSTOM="OpenGL/gl3.h"
|
||||
)
|
||||
else()
|
||||
target_compile_definitions(
|
||||
imgui-glfw PRIVATE
|
||||
IMGUI_IMPL_OPENGL_LOADER_CUSTOM="GLES3/gl3.h"
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(
|
||||
imgui-glfw PUBLIC
|
||||
${OPENGL_gl_LIBRARY}
|
||||
|
@ -3,7 +3,6 @@
|
||||
*/
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
#define IMGUI_IMPL_OPENGL_ES3
|
||||
#include <imgui_impl_opengl3.h>
|
||||
#include <imgui_impl_glfw.h>
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#include <array>
|
||||
|
||||
#define IMGUI_IMPL_OPENGL_ES3
|
||||
#include <imgui_impl_opengl3.h>
|
||||
|
||||
#include <nostalgia/glutils/glutils.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user