Presets PostFX carregats de shaders/postfx.yaml; Screen aplica params (v0.5.0)
This commit is contained in:
1 parent
6c8ef9ff44
commit
26b4d9e610
7 files changed
+194
-4
No files matched your search
@@ -136,6 +136,12 @@ void Screen::createSdl() {
|
||||
SDL_SetTextureScaleMode(game_texture_, toSdlScaleMode(config_.texture_filter));
|
||||
}
|
||||
|
||||
void Screen::applyPostFXParams(const Rendering::PostFXParams& params) {
|
||||
if (shader_backend_ != nullptr) {
|
||||
shader_backend_->setPostFXParams(params);
|
||||
}
|
||||
}
|
||||
|
||||
void Screen::clear(std::uint8_t r, std::uint8_t g, std::uint8_t b) {
|
||||
const std::uint32_t COLOR = (0xFFU << 24) | (static_cast<std::uint32_t>(r) << 16) | (static_cast<std::uint32_t>(g) << 8) | static_cast<std::uint32_t>(b);
|
||||
std::ranges::fill(canvas_, COLOR);
|
||||
|
||||
Reference in new issue
Block a user