bluekyu / panda3d_imgui

ImGui Helper for Panda3D C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImGui Helper for Panda3D C++

This project is to use ImGui for Panda3D C++.

panda3d-imgui-screenshot

NOTE: There is some flickering bug (bluekyu/rpcpp_plugins#18).

Usage

Just copy source files in "panda3d_imgui" directory and write setup codes in your game or engine.

Building Sample

  1. 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]
  1. Build and install
cmake --build . --config release --target install
  1. Run sample file (panda3d_imgui_sample).

    (You may need to set up Panda3D and ImGui runtime path)

Other Samples

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

rpstat

License

See LICENSE.md file.

About

ImGui Helper for Panda3D C++

License:MIT License


Languages

Language:C++ 49.5%Language:CMake 43.3%Language:GLSL 7.2%