Foundation
Loading...
Searching...
No Matches
ModelViewer
Gizmos
Gizmos.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
Math/Math.hpp
>
3
#include <
Core/Core.hpp
>
4
#include <
Bindings/ImGui.hpp
>
5
6
namespace
ModelViewer
7
{
8
using namespace
Foundation
;
9
using namespace
Core;
10
using namespace
Math;
11
inline
Tuple<ImVec2,ImVec2,ImDrawList*>
getGizmoDrawOffsetRegionList
()
12
{
13
ImVec2
offset = ImGui::GetWindowPos();
14
ImVec2
region
= ImGui::GetContentRegionAvail();
15
ImDrawList
*
drawList
= ImGui::GetWindowDrawList();
16
return
{offset,
region
,
drawList
};
17
}
18
IMGUI_API
void
drawGizmoCameraFrustum
(
19
mat4
viewProj,
20
mat4
frustumViewProj
/* req. non-inf zFar (zCull) - use @ref Camera::GetCullParams */
,
21
ImColor
color
=
ImColor
(1.0f,1.0f,1.0f,0.75f),
22
float
lineThickness
= 1.0f
23
);
24
}
Core.hpp
ImGui.hpp
Math.hpp
Foundation::Core::UniquePtr
std::unique_ptr< T, StlDeleter< T > > UniquePtr
std::unique_ptr with custom deleter that uses a Foundation::Core::Allocator to deallocate memory.
Definition
Allocator.hpp:161
Foundation
Definition
Future.hpp:8
ModelViewer
ModelViewer implementation.
Definition
App.cpp:17
ModelViewer::drawGizmoCameraFrustum
void drawGizmoCameraFrustum(mat4 viewProj, mat4 frustumViewProj, ImColor color, float lineThickness)
Definition
Gizmos.cpp:4
ModelViewer::getGizmoDrawOffsetRegionList
Tuple< ImVec2, ImVec2, ImDrawList * > getGizmoDrawOffsetRegionList()
Definition
Gizmos.hpp:11
Generated by
1.9.8