pleascach/UI/UI.hpp
connellpaxton f95c48bac6 Fixed rendering issues!
Turns out it was all just fustrum shit
2024-02-19 22:45:17 -05:00

35 lines
564 B
C++

#pragma once
#define VULKAN_HPP_NO_STRUCT_CONSTRUCTORS
#include <vulkan/vulkan.hpp>
#include <Renderer/CommandBuffer.hpp>
struct Renderer;
struct Camera;
struct UI {
struct UI_Info {
float fps = 0.0;
bool& flycam;
bool& visibility_testing;
float& time;
/* camera stuff */
Camera& cam;
float& tess_factor;
float& tess_edge_size;
const size_t& n_indices;
float& near_plane;
float& far_plane;
} info;
vk::Device dev;
vk::DescriptorPool desc_pool;
UI(Renderer* ren);
void newFrame();
void render(vk::CommandBuffer cmd);
~UI();
};