| 201 | } |
| 202 | |
| 203 | void OpenGlRenderer::loadConfig(Json const& config) { |
| 204 | m_frameBuffers.clear(); |
| 205 | |
| 206 | for (auto& pair : config.getObject("frameBuffers", {})) { |
| 207 | Json config = pair.second; |
| 208 | config = config.set("multisample", m_multiSampling); |
| 209 | Logger::info("Creating framebuffer {}", pair.first); |
| 210 | m_frameBuffers[pair.first] = make_ref<GlFrameBuffer>(config); |
| 211 | |
| 212 | } |
| 213 | setScreenSize(m_screenSize); |
| 214 | m_config = config; |
| 215 | } |
| 216 | |
| 217 | void OpenGlRenderer::loadEffectConfig(String const& name, Json const& effectConfig, StringMap<String> const& shaders) { |
| 218 | if (auto effect = m_effects.ptr(name)) { |