18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 06:55:02 +01:00

Script screens: led_post and resize of the Lua screens on the gpu

This commit is contained in:
2026-11-10 16:22:35 +01:00
parent c4924f756d
commit e433b43fef
20 changed files with 971 additions and 34 deletions

View File

@@ -416,6 +416,21 @@ bool opengl33_renderer::Init(GLFWwindow *Window)
void opengl33_renderer::Shutdown()
{
vr.reset();
m_screen_post.reset();
}
script_screens::post_processor *opengl33_renderer::Screen_post_processor()
{
// GLES converts what's written into an sRGB texture, and the passes give the bytes as they are: the cpu does it there
if (Global.gfx_usegles)
{
return nullptr;
}
if (m_screen_post == nullptr)
{
m_screen_post = std::make_unique<opengl33_screen_post>();
}
return m_screen_post.get();
}
bool opengl33_renderer::AddViewport(const global_settings::extraviewport_config &conf)