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

Method getMSAA

source/MRViewer/MRViewer.cpp:2737–2751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2735}
2736
2737int Viewer::getMSAA() const
2738{
2739 int curSamples = 0;
2740 if ( !glInitialized_ )
2741 return curSamples;
2742 if ( !sceneTexture_ || sceneTexture_->isBound() )
2743 GL_EXEC( glGetIntegerv( GL_SAMPLES, &curSamples ) );
2744 else
2745 {
2746 sceneTexture_->bind( false );
2747 GL_EXEC( glGetIntegerv( GL_SAMPLES, &curSamples ) );
2748 sceneTexture_->unbind();
2749 }
2750 return curSamples;
2751}
2752
2753void Viewer::requestChangeMSAA( int newMSAA )
2754{

Callers 3

GetSystemInfoJsonFunction · 0.80
ViewerSettingsPluginMethod · 0.80
drawRenderOptions_Method · 0.80

Calls 3

isBoundMethod · 0.80
unbindMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected