Foundation
Loading...
Searching...
No Matches
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
6namespace ModelViewer
7{
8 using namespace Foundation;
9 using namespace Core;
10 using namespace Math;
12 {
13 ImVec2 offset = ImGui::GetWindowPos();
14 ImVec2 region = ImGui::GetContentRegionAvail();
15 ImDrawList* drawList = ImGui::GetWindowDrawList();
16 return {offset, region, drawList};
17 }
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}
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
Definition Future.hpp:8
ModelViewer implementation.
Definition App.cpp:17
void drawGizmoCameraFrustum(mat4 viewProj, mat4 frustumViewProj, ImColor color, float lineThickness)
Definition Gizmos.cpp:4
Tuple< ImVec2, ImVec2, ImDrawList * > getGizmoDrawOffsetRegionList()
Definition Gizmos.hpp:11