|
2 years ago | |
---|---|---|
.. | ||
backends | 2 years ago | |
README.md | 2 years ago | |
imgui_axis.cpp | 2 years ago | |
imgui_axis.hpp | 2 years ago | |
imgui_camera_widget.cpp | 2 years ago | |
imgui_camera_widget.h | 2 years ago | |
imgui_helper.cpp | 2 years ago | |
imgui_helper.h | 2 years ago | |
imgui_orient.cpp | 2 years ago | |
imgui_orient.h | 2 years ago |
README.md
Helpers imgui
Table of Contents
imgui_camera_widget.h
functions in ImGuiH
- CameraWidget : CameraWidget is a Camera widget for the the Camera Manipulator
- SetCameraJsonFile : set the name (without .json) of the setting file. It will load and replace all camera and settings
- SetHomeCamera : set the home camera - replace the one on load
- AddCamera : adding a camera to the list of cameras
imgui_orient.h
struct ImOrient
This is a really nice implementation of an orientation widget; all due respect to the original author ;)
Notes from: www.github.com/cmaughan
Ported from AntTweakBar
Dependencies kept to a minimum. I basically vectorized the original code, added a few math types, cleaned things up and made it clearer what the maths was doing.
I tried to make it more imgui-like, and removed all the excess stuff not needed here. This still needs work.
I also added triangle culling because ImGui doesn't support winding clip
The widget works by transforming the 3D object to screen space and clipping the triangles. This makes it work with any imgui back end, without modifications to the renderers.
\todo More cleanup. \todo Figure out what ShowDir is for. \todo Test direction vectors more