MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / requestChangeMSAA

Method requestChangeMSAA

source/MRViewer/MRViewer.cpp:2753–2767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2751}
2752
2753void Viewer::requestChangeMSAA( int newMSAA )
2754{
2755 if ( settingsMng_ )
2756 settingsMng_->saveInt( "multisampleAntiAliasing", newMSAA );
2757 if ( sceneTexture_ )
2758 {
2759 CommandLoop::appendCommand( [newMSAA, this] ()
2760 {
2761 sceneTexture_->reset( framebufferSize, getMSAAPow( newMSAA ), isDepthPeelingEnabled() );
2762 if ( depthPeeler_ )
2763 depthPeeler_->reset( framebufferSize );
2764 setSceneDirty();
2765 } );
2766 }
2767}
2768
2769int Viewer::getRequestedMSAA() const
2770{

Callers 1

drawRenderOptions_Method · 0.80

Calls 4

getMSAAPowFunction · 0.85
setSceneDirtyFunction · 0.85
saveIntMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected