MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / loadConfig

Method loadConfig

source/application/StarRenderer_opengl.cpp:203–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void 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
217void OpenGlRenderer::loadEffectConfig(String const& name, Json const& effectConfig, StringMap<String> const& shaders) {
218 if (auto effect = m_effects.ptr(name)) {

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
getObjectMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected