fbb26c2b88
Having a simple Dear ImGui bridge is not just useful for the manual tests, which do not have any other means to displays GUIs, but is in itself an important exercise for the QRhi machinery. Have a new manual test that exercises the built-in ImGui demo window. Then use it in the displacement test for real, to replace the myriads of key presses with on-screen sliders and checkboxes (with less code). Change-Id: I296bafae2a5cce6fc7a447d97e68e5bcec15f451 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
27 lines
550 B
CMake
27 lines
550 B
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
qt_internal_add_manual_test(displacement
|
|
GUI
|
|
SOURCES
|
|
displacement.cpp
|
|
LIBRARIES
|
|
Qt::Gui
|
|
Qt::GuiPrivate
|
|
)
|
|
|
|
qt_internal_add_resource(displacement "displacement"
|
|
PREFIX
|
|
"/"
|
|
FILES
|
|
"material.vert.qsb"
|
|
"material.tesc.qsb"
|
|
"material.tese.qsb"
|
|
"material.frag.qsb"
|
|
"heightmap.png"
|
|
)
|
|
|
|
set(imgui_base ../shared/imgui)
|
|
set(imgui_target displacement)
|
|
include(${imgui_base}/imgui.cmakeinc)
|