Skip to content
Snippets Groups Projects
Commit 0e8ca0c8 authored by Tristan Walter's avatar Tristan Walter
Browse files

different defines

parent c3521b5a
No related branches found
No related tags found
No related merge requests found
......@@ -4,16 +4,6 @@
#include <imgui/imgui.h>
#include <imgui/examples/imgui_impl_glfw.h>
#ifndef GL_VERSION_3_2
#define OPENGL3_CONDITION (false)
#define GL_PIXEL_PACK_BUFFER 0
#define GL_RG8 0
#define GL_TEXTURE_SWIZZLE_RGBA 0
#define GL_RG 0
#else
#define OPENGL3_CONDITION (!CMN_USE_OPENGL2 && ((GLVersion.major == 3 && GLVersion.minor >= 2) || (GLVersion.major > 3)))
#endif
#include <imgui/examples/imgui_impl_opengl2.h>
using ImTextureID_t = ImGui_OpenGL2_TextureID;
......@@ -30,6 +20,25 @@ using ImTextureID_t = ImGui_OpenGL2_TextureID;
#include IMGUI_IMPL_OPENGL_LOADER_CUSTOM
#endif
#ifndef GL_VERSION_3_2
#define OPENGL3_CONDITION (false)
#else
#define OPENGL3_CONDITION (!CMN_USE_OPENGL2 && ((GLVersion.major == 3 && GLVersion.minor >= 2) || (GLVersion.major > 3)))
#endif
#ifndef GL_PIXEL_PACK_BUFFER
#define GL_PIXEL_PACK_BUFFER 0
#endif
#ifndef GL_RG
#define GL_RG 0
#endif
#ifndef GL_RG8
#define GL_RG8 0
#endif
#ifndef GL_TEXTURE_SWIZZLE_RGBA
#define GL_TEXTURE_SWIZZLE_RGBA 0
#endif
//#define GLFW_INCLUDE_GL3 /* don't drag in legacy GL headers. */
#define GLFW_NO_GLU /* don't drag in the old GLU lib - unless you must. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment