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

Method setMultiSampling

source/application/StarRenderer_opengl.cpp:546–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546void OpenGlRenderer::setMultiSampling(unsigned multiSampling) {
547 if (m_multiSampling == multiSampling)
548 return;
549
550 m_multiSampling = multiSampling;
551 if (m_multiSampling) {
552 glEnable(GL_MULTISAMPLE);
553 glEnable(GL_SAMPLE_SHADING);
554 glMinSampleShading(1.f);
555 } else {
556 glMinSampleShading(0.f);
557 glDisable(GL_SAMPLE_SHADING);
558 glDisable(GL_MULTISAMPLE);
559 }
560 loadConfig(m_config);
561}
562
563TextureGroupPtr OpenGlRenderer::createTextureGroup(TextureGroupSize textureSize, TextureFiltering filtering) {
564 int maxTextureSize;

Callers 1

renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected