Skip to content

bluekyu/panda3d_imgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.