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