#include <Gui.hpp>
Classes | |
struct | ClockData |
struct | funcs |
Public Member Functions | |
Gui ()=default | |
~Gui ()=default | |
Gui (const Gui &)=delete | |
Gui & | operator= (const Gui &)=delete |
Gui (Gui &&)=delete | |
Gui & | operator= (Gui &&)=delete |
void | init (GLFWwindow *window, VkInstance instance, const Device *device, VkRenderPass renderPass) |
void | render (Renderer *renderer, SceneManager &sceneManager, Camera &camera, VkPhysicalDevice physicalDevice, GlobalUbo &ubo, const ClockData &clockData) |
void | setState (const GUI_STATE state) |
GUI_STATE | getState () const |
std::vector< unsigned int > * | getObjectsToRemove () |
std::vector< unsigned int > * | getLightsToRemove () |
Static Public Member Functions | |
static void | cleanup () |
Private Member Functions | |
void | objectsSection (SceneManager &sceneManager) |
void | lightsSection (SceneManager &sceneManager) |
Static Private Member Functions | |
static void | initStyle () |
static void | renderFrameWindow (const ClockData &clockData) |
static void | cameraSection (Camera &camera) |
static void | inputsSection (const ImGuiIO &io) |
static void | rendererSection (Renderer *renderer, GlobalUbo &ubo) |
static void | devicePropertiesSection (VkPhysicalDeviceProperties deviceProperties) |
Private Attributes | |
ImGuiIO * | m_io {nullptr} |
GUI_STATE | m_state {HIDDEN} |
float | m_intensity {1.0F} |
float | m_shininess {DEFAULT_SHININESS} |
std::vector< unsigned int > | m_objectsToRemove |
std::vector< unsigned int > | m_lightsToRemove |
|
default |
|
default |
|
delete |
|
delete |
|
staticprivate |
Definition at line 109 of file render.cpp.
References ven::DEFAULT_FAR, ven::DEFAULT_FOV, ven::DEFAULT_LOOK_SPEED, ven::DEFAULT_MOVE_SPEED, ven::DEFAULT_NEAR, ven::DEFAULT_POSITION, ven::DEFAULT_ROTATION, ven::Camera::getFar(), ven::Camera::getFov(), ven::Camera::getLookSpeed(), ven::Camera::getMoveSpeed(), ven::Camera::getNear(), ven::Transform3D::rotation, ven::Camera::setFar(), ven::Camera::setFov(), ven::Camera::setLookSpeed(), ven::Camera::setMoveSpeed(), ven::Camera::setNear(), ven::Camera::transform, and ven::Transform3D::translation.
|
static |
Definition at line 11 of file render.cpp.
Referenced by ven::Engine::~Engine().
|
staticprivate |
Definition at line 304 of file render.cpp.
|
inlinenodiscard |
Definition at line 55 of file Gui.hpp.
References m_lightsToRemove.
|
inlinenodiscard |
Definition at line 54 of file Gui.hpp.
References m_objectsToRemove.
|
inlinenodiscard |
Definition at line 53 of file Gui.hpp.
References m_state.
Referenced by ven::EventManager::handleEvents().
void ven::Gui::init | ( | GLFWwindow * | window, |
VkInstance | instance, | ||
const Device * | device, | ||
VkRenderPass | renderPass ) |
Definition at line 6 of file init.cpp.
References ven::DESCRIPTOR_COUNT, ven::Device::device(), ven::Device::getPhysicalDevice(), ven::Device::graphicsQueue(), initStyle(), and m_io.
Referenced by ven::Engine::Engine().
|
staticprivate |
|
staticprivate |
Definition at line 282 of file render.cpp.
|
private |
Definition at line 185 of file render.cpp.
References ven::Colors::COLOR_PRESETS_3, ven::DEFAULT_LIGHT_INTENSITY, ven::DEFAULT_SHININESS, ven::LightFactory::duplicate(), ven::SceneManager::getLights(), and ven::SceneManager::setDestroyState().
|
private |
Definition at line 158 of file render.cpp.
References ven::ObjectFactory::duplicate(), ven::SceneManager::getObjects(), ven::Colors::GRAY_4, and ven::SceneManager::setDestroyState().
void ven::Gui::render | ( | Renderer * | renderer, |
SceneManager & | sceneManager, | ||
Camera & | camera, | ||
VkPhysicalDevice | physicalDevice, | ||
GlobalUbo & | ubo, | ||
const ClockData & | clockData ) |
Definition at line 18 of file render.cpp.
References ven::Renderer::getCurrentCommandBuffer().
Definition at line 48 of file render.cpp.
References ven::GlobalUbo::ambientLightColor, ven::Colors::COLOR_PRESETS_4, ven::Colors::COLOR_PRESETS_VK, ven::DEFAULT_AMBIENT_LIGHT_INTENSITY, ven::Renderer::getAspectRatio(), ven::Renderer::getClearColor(), ven::Window::getExtent(), ven::Renderer::getWindow(), ven::Renderer::setClearValue(), and ven::Window::setFullscreen().
|
staticprivate |
Definition at line 39 of file render.cpp.
References ven::Gui::ClockData::deltaTimeMS, and ven::Gui::ClockData::fps.
|
inline |
Definition at line 52 of file Gui.hpp.
References m_state.
Referenced by ven::EventManager::handleEvents().
|
private |
|
private |
Definition at line 76 of file Gui.hpp.
Referenced by getLightsToRemove().
|
private |
Definition at line 75 of file Gui.hpp.
Referenced by getObjectsToRemove().
|
private |
Definition at line 71 of file Gui.hpp.
Referenced by getState(), and setState().