You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
c6cab1f352
This is (kind of) an OpenGL-only function, which should be avoided when SDL2 isn't using OpenGL. The only alternative that is recommended is SDL_GetRendererOutputSize, which limits this fix to the SDL_Renderer backend. Still, I think it's better than nothing. I say that SDL_GL_GetDrawableSize is "kind of" OpenGL-only because it does technically work even when SDL2 isn't using OpenGL. It's just that it becomes a shim to SDL_GetWindowSize, which is not suitable for high-DPI usage because it reflects the size of the window in screen coordinates, not actual pixels, so it really should be avoided when not using OpenGL. |
3 years ago | |
---|---|---|
.. | ||
example_allegro5 | 3 years ago | |
example_android_opengl3 | 4 years ago | |
example_apple_metal | 3 years ago | |
example_apple_opengl2 | 3 years ago | |
example_emscripten_opengl3 | 3 years ago | |
example_emscripten_wgpu | 3 years ago | |
example_glfw_metal | 3 years ago | |
example_glfw_opengl2 | 4 years ago | |
example_glfw_opengl3 | 3 years ago | |
example_glfw_vulkan | 3 years ago | |
example_glut_opengl2 | 4 years ago | |
example_null | 3 years ago | |
example_sdl_directx11 | 4 years ago | |
example_sdl_metal | 4 years ago | |
example_sdl_opengl2 | 4 years ago | |
example_sdl_opengl3 | 3 years ago | |
example_sdl_sdlrenderer | 3 years ago | |
example_sdl_vulkan | 3 years ago | |
example_win32_directx9 | 4 years ago | |
example_win32_directx10 | 4 years ago | |
example_win32_directx11 | 4 years ago | |
example_win32_directx12 | 4 years ago | |
libs | 3 years ago | |
README.txt | 4 years ago | |
imgui_examples.sln | 3 years ago |
README.txt
See BACKENDS and EXAMPLES files in the docs/ folder, or on the web at: https://github.com/ocornut/imgui/tree/master/docs Backends = Helper code to facilitate integration with platforms/graphics api (used by Examples + should be used by your app). Examples = Standalone applications showcasing integration with platforms/graphics api. Some Examples have extra README files in their respective directory, please check them too! Once Dear ImGui is running (in either examples or your own application/game/engine), run and refer to ImGui::ShowDemoWindow() in imgui_demo.cpp for the end-user API.