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 {
14auto init(const std::shared_ptr<wren::Context>& context)
16
17auto begin() -> void;
18auto end() -> void;
19
20void 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
Definition ui.cpp:14
auto begin() -> void
Definition ui.cpp:348
auto init(const std::shared_ptr< wren::Context > &context) -> wren::expected< void >
Definition ui.cpp:250
auto end() -> void
Definition ui.cpp:354
void flush(const ::vk::CommandBuffer &cmd)
Definition ui.cpp:356
Definition ui.hpp:5
Definition editor_scene.hpp:5
std::expected< T, Err > expected
Definition result.hpp:43