wren
Vulkan-based game engine
Toggle main menu visibility
Loading...
Searching...
No Matches
ui.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
wren/utils/result.hpp
>
4
5
namespace
vk
{
6
class
CommandBuffer;
7
}
8
9
namespace
wren
{
10
struct
Context;
11
}
12
13
namespace
editor::ui
{
14
auto
init
(
const
std::shared_ptr<wren::Context>& context)
15
->
wren::expected<void>
;
16
17
auto
begin
() -> void;
18
auto
end
() -> void;
19
20
void
flush
(const ::vk::CommandBuffer& cmd);
21
22
// void matrix() {
23
// ImGui::PushItemWidth(80);
24
// for (auto row = 0; row < 4; ++row) {
25
// for (auto col = 0; col < 4; ++col) {
26
// const std::string label = std::format("{}_{}", row, col);
27
// ImGui::DragFloat(label.c_str(), &proj.at(col, row), 0.24f);
28
// if (col < 3) {
29
// ImGui::SameLine();
30
// }
31
// }
32
// }
33
// ImGui::PopItemWidth();
34
// }
35
36
}
// namespace editor::ui
editor::ui
Definition
ui.cpp:14
editor::ui::begin
auto begin() -> void
Definition
ui.cpp:348
editor::ui::init
auto init(const std::shared_ptr< wren::Context > &context) -> wren::expected< void >
Definition
ui.cpp:250
editor::ui::end
auto end() -> void
Definition
ui.cpp:354
editor::ui::flush
void flush(const ::vk::CommandBuffer &cmd)
Definition
ui.cpp:356
vk
Definition
ui.hpp:5
wren
Definition
editor_scene.hpp:5
wren::expected
std::expected< T, Err > expected
Definition
result.hpp:43
result.hpp
editor
src
ui.hpp
Generated by
1.17.0