This project is to use ImGui for Panda3D C++.
NOTE: There is some flickering bug (bluekyu/rpcpp_plugins#18).
Just copy source files in "panda3d_imgui" directory and write setup codes in your game or engine.
- Run cmake commands. With vcpkg,
cmake
-G "Visual Studio 15 2017 Win64"
-DCMAKE_INSTALL_PREFIX="[PATH_TO_INSTALL]"
-DCMAKE_TOOLCHAIN_FILE="[PATH_TO_VCPKG]/vcpkg/scripts/buildsystems/vcpkg.cmake"
-Dpanda3d_ROOT="[PATH_TO_PANDA3D]/panda3d"
Without vcpkg, set imgui_DIR
cache variable:
cmake
-G "Visual Studio 15 2017 Win64"
-DCMAKE_INSTALL_PREFIX="[PATH_TO_INSTALL]"
-Dpanda3d_ROOT="[PATH_TO_PANDA3D]/panda3d"
-Dimgui_DIR="[PATH_TO_IMGUI_CMAKE]
- Build and install
cmake --build . --config release --target install
-
Run sample file (
panda3d_imgui_sample
).(You may need to set up Panda3D and ImGui runtime path)
You can find sample code using Panda3DImGui
class in imgui plugin.
Also, there is sample codes that use ImGui for Panda3D data in rpstat plugin
See LICENSE.md
file.