mirror of
https://github.com/hyblocker/OpenVR-SpaceCalibrator.git
synced 2026-10-06 10:00:19 +02:00
vendor: add implot3d
This commit is contained in:
7 files changed
+46
-1
No files matched your search
@@ -31,3 +31,6 @@
|
||||
[submodule "vendor/simpleble"]
|
||||
path = vendor/simpleble
|
||||
url = https://github.com/simpleble/simpleble
|
||||
[submodule "vendor/implot3d"]
|
||||
path = vendor/implot3d
|
||||
url = git@github.com:brenocq/implot3d.git
|
||||
@@ -804,4 +804,28 @@ freely, subject to the following restrictions:
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
== implot3d ==
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024-2026 Breno Cunha Queiroz
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -150,6 +150,7 @@ target_link_libraries(SpaceCalibratorOverlay
|
||||
PRIVATE SpaceCalibratorCommon
|
||||
PRIVATE imgui
|
||||
PRIVATE implot
|
||||
PRIVATE implot3d
|
||||
PRIVATE glad
|
||||
PRIVATE glfw
|
||||
PRIVATE fmt
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <string>
|
||||
#include <imgui.h>
|
||||
#include <implot.h>
|
||||
#include <implot3d.h>
|
||||
#include <IconsMaterialSymbols.h>
|
||||
|
||||
namespace spacecal {
|
||||
|
||||
@@ -106,6 +106,7 @@ namespace spacecal {
|
||||
|
||||
ImGui::CreateContext();
|
||||
ImPlot::CreateContext();
|
||||
ImPlot3D::CreateContext();
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
|
||||
@@ -270,6 +271,7 @@ namespace spacecal {
|
||||
ImGui_ImplGlfw_Shutdown();
|
||||
|
||||
ImPlot::DestroyContext();
|
||||
ImPlot3D::DestroyContext();
|
||||
ImGui::DestroyContext();
|
||||
|
||||
if (m_glfwWindow)
|
||||
|
||||
Vendored
+13
@@ -50,6 +50,19 @@ target_include_directories(implot
|
||||
target_compile_definitions(implot PRIVATE IMGUI_DEFINE_MATH_OPERATORS)
|
||||
target_link_libraries(implot PRIVATE imgui)
|
||||
|
||||
# ImPlot3D
|
||||
message("Adding ImPlot3D...")
|
||||
add_library(implot3d STATIC
|
||||
${CMAKE_SOURCE_DIR}/vendor/implot3d/implot3d.cpp
|
||||
${CMAKE_SOURCE_DIR}/vendor/implot3d/implot3d_items.cpp
|
||||
${CMAKE_SOURCE_DIR}/vendor/implot3d/implot3d_demo.cpp
|
||||
${CMAKE_SOURCE_DIR}/vendor/implot3d/implot3d_meshes.cpp)
|
||||
target_include_directories(implot3d
|
||||
PUBLIC ${CMAKE_SOURCE_DIR}/vendor/imgui
|
||||
PUBLIC ${CMAKE_SOURCE_DIR}/vendor/implot3d)
|
||||
target_compile_definitions(implot3d PRIVATE IMGUI_DEFINE_MATH_OPERATORS)
|
||||
target_link_libraries(implot3d PRIVATE imgui)
|
||||
|
||||
# fmt
|
||||
message("Adding fmt...")
|
||||
set(BUILD_SHARED_LIBS FALSE)
|
||||
|
||||
+1
Submodule vendor/implot3d added at 6cbefa9b97.
Reference in new issue
Block a user