feat: Added support for OpenGL post processing shaders

This commit is contained in:
WerWolv
2025-01-20 21:24:25 +01:00
parent c117d9b3e5
commit 07e29f2030
4 changed files with 137 additions and 13 deletions

View File

@@ -9,6 +9,7 @@
#include <hex/ui/view.hpp>
#include <jthread.hpp>
#include <hex/helpers/opengl.hpp>
struct GLFWwindow;
struct ImGuiSettingsHandler;
@@ -47,6 +48,10 @@ namespace hex {
void exitImGui();
void registerEventHandlers();
void loadPostProcessingShader();
void drawImGui();
void drawWithShader();
GLFWwindow *m_window = nullptr;
@@ -72,6 +77,8 @@ namespace hex {
std::atomic<bool> m_sleepFlag;
std::condition_variable m_sleepCondVar;
std::mutex m_sleepMutex;
gl::Shader m_postProcessingShader;
};
}