Mesa (master): intel: tools: import ImGui
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 22 17:06:09 UTC 2018
Module: Mesa
Branch: master
Commit: ea83a1d304dc97d1d155a633e95d902a08703175
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea83a1d304dc97d1d155a633e95d902a08703175
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Sun Jul 29 19:32:45 2018 +0100
intel: tools: import ImGui
We want to add a new UI tool to decode aub files. This will use the
Dear ImGui library to render its interface. The build of this UI
toolkit is conditional to -Dwith_tools=intel-ui which superseeds
-Dwith_tools=intel.
The main way to use ImGui is to embed its source code at a particular
revision. Most embedding projects have to do a bit of integration
which is really specific to one's project. In our case the only
modification is to include libepoxy. We also choose to use Gtk+3 for
the window system integration. As oppose to the previous previous
version of this patch using GLFW, Gtk+ is able to handle X11/Wayland
session as well as property DPI scaling on retina monitors.
The import was done at this commit (https://github.com/ocornut/imgui) :
commit 6211f40f3d903dd9df961256e044029c49793aa3
Author: omar <omarcornut at gmail.com>
Date: Fri Jul 27 12:29:33 2018 +0200
Internals: Drag and Drop: default drop preview use a narrower clipping rectangle (no effect here, but other branches uses a narrow clipping rectangle that was too small so this is a fix for it) + Comments
v2: Switch from GLFW to GTK+ (Lionel)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Acked-by: Rafael Antognolli <rafael.antognolli at intel.com>
---
meson_options.txt | 2 +-
src/intel/Makefile.am | 16 +
src/intel/meson.build | 2 +-
src/intel/tools/imgui/LICENSE.txt | 21 +
src/intel/tools/imgui/README | 15 +
src/intel/tools/imgui/imconfig.h | 72 +
src/intel/tools/imgui/imgui.cpp | 14184 +++++++++++++++++++++++++
src/intel/tools/imgui/imgui.h | 1936 ++++
src/intel/tools/imgui/imgui_demo.cpp | 3471 ++++++
src/intel/tools/imgui/imgui_draw.cpp | 3077 ++++++
src/intel/tools/imgui/imgui_impl_gtk3.cpp | 284 +
src/intel/tools/imgui/imgui_impl_gtk3.h | 15 +
src/intel/tools/imgui/imgui_impl_opengl3.cpp | 437 +
src/intel/tools/imgui/imgui_impl_opengl3.h | 25 +
src/intel/tools/imgui/imgui_internal.h | 1225 +++
src/intel/tools/imgui/meson.build | 24 +
src/intel/tools/imgui/stb_rect_pack.h | 623 ++
src/intel/tools/imgui/stb_textedit.h | 1409 +++
src/intel/tools/imgui/stb_truetype.h | 4854 +++++++++
src/intel/tools/meson.build | 5 +-
20 files changed, 31694 insertions(+), 3 deletions(-)
Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=ea83a1d304dc97d1d155a633e95d902a08703175
More information about the mesa-commit
mailing list