1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0027360: Visualization - remove obsolete anti-aliasing API

The methods V3d_View::SetAntialiasingOn(), ::SetAntialiasingOff()
and Antialiasing() have been removed.
This commit is contained in:
kgv
2016-07-30 17:54:29 +03:00
committed by bugmaster
parent d01ed5fdd1
commit 2e5139af6b
16 changed files with 13 additions and 199 deletions

View File

@@ -922,13 +922,6 @@ void OpenGl_View::render (Graphic3d_Camera::Projection theProjection,
#endif
aManager->SetShadingModel (myShadingModel);
// Apply AntiAliasing
if (myAntiAliasing)
myWorkspace->NamedStatus |= OPENGL_NS_ANTIALIASING;
else
myWorkspace->NamedStatus &= ~OPENGL_NS_ANTIALIASING;
if (!aManager->IsEmpty())
{
aManager->UpdateClippingState();
@@ -1022,40 +1015,6 @@ void OpenGl_View::renderStructs (Graphic3d_Camera::Projection theProjection,
return;
Handle(OpenGl_Context) aCtx = myWorkspace->GetGlContext();
if ( (myWorkspace->NamedStatus & OPENGL_NS_2NDPASSNEED) == 0 )
{
#if !defined(GL_ES_VERSION_2_0)
const int anAntiAliasingMode = myWorkspace->AntiAliasingMode();
#endif
if ( !myAntiAliasing )
{
#if !defined(GL_ES_VERSION_2_0)
if (aCtx->core11 != NULL)
{
glDisable (GL_POINT_SMOOTH);
}
glDisable(GL_LINE_SMOOTH);
if( anAntiAliasingMode & 2 ) glDisable(GL_POLYGON_SMOOTH);
#endif
glBlendFunc (GL_ONE, GL_ZERO);
glDisable (GL_BLEND);
}
else
{
#if !defined(GL_ES_VERSION_2_0)
if (aCtx->core11 != NULL)
{
glEnable(GL_POINT_SMOOTH);
}
glEnable(GL_LINE_SMOOTH);
if( anAntiAliasingMode & 2 ) glEnable(GL_POLYGON_SMOOTH);
#endif
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable (GL_BLEND);
}
}
Standard_Boolean toRenderGL = theToDrawImmediate ||
myRenderParams.Method != Graphic3d_RM_RAYTRACING ||
myRaytraceInitStatus == OpenGl_RT_FAIL ||