Comments (1)
Hello.
I am quite busy these days so that I will not have time to work this in the next days. In the meantime you can compile the library by yourself and just define what is needed to get this feature.
from imgui_impl_opengl3:
// Desktop GL 3.3+ has glBindSampler()
#if !defined(IMGUI_IMPL_OPENGL_ES2) && !defined(IMGUI_IMPL_OPENGL_ES3) && defined(GL_VERSION_3_3)
#define IMGUI_IMPL_OPENGL_MAY_HAVE_BIND_SAMPLER
#endif
=> You need to define GL_VERSION_3_3
at compilation time.
This will not work on a mac, because of the way openGL is setup on this plaform at the present time.
See src/hello_imgui/internal/backend_impls/opengl_setup_helper/opengl_setup_glfw.cpp
void OpenGlSetupGlfw::SelectOpenGlVersion()
{
#if defined(IMGUI_IMPL_OPENGL_ES3)
{
BACKEND_THROW("OpenGlSetupGlfw::SelectOpenGlVersion needs implementation for GLES !");
// SDL_GL_SetAttribute(SDL_GL_CONTEXT_EGL, 3);
// SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK,
// SDL_GL_CONTEXT_PROFILE_ES);
// SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
// SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
}
#elif defined(__APPLE__)
{
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // Required on Mac
}
#else
{
// GL 3.2+
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); // 3.2+ only
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // 3.0+ only
}
#endif
}
from imgui_bundle.
Related Issues (20)
- Missing fields `ImFontConfig.GlyphRanges` in python binding HOT 1
- dock_builder API should be public HOT 2
- Required initialization for imgui_node_editor? HOT 2
- Try to build using Nuitka HOT 2
- Simulate key presses with the test engine HOT 4
- plotting python numpy data that is noncontiguous and using implot stride option don't seem to work HOT 5
- Expose some additional `implot` internal functions to allow custom plots HOT 2
- [imgui_node_editor] Can't set value for StyleVar.node_padding HOT 4
- [imgui_node_editor] Can't set value for `Colors[StyleColor_*]` HOT 5
- Glfw Error 65542: WGL: The driver does not appear to support OpenGL HOT 25
- wrapping of implot BeginSubplots appears to have wrong argument type for `row_ratios` and `col_ratios` HOT 4
- test engine logging and headless HOT 4
- ImSpinner Version Bump - Resolves Multiple Def Compilation Errors HOT 2
- imgui_tex_inspect displays incorrect color value of texture in windows HOT 5
- missing draw-list concave fill HOT 3
- new release HOT 18
- imgui_bundle._imgui_bundle.imgui.ImFontAtlas' object has no attribute 'delta_time'
- When trying to draw the colorpicker4 function, an error occurred. HOT 2
- implot.get_style().colors is not available HOT 2
- Multiple separated instances/windows of immapp/hello_imgui HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui_bundle.