eeschema-gal: added EnableDepthTest() feature in GAL

This commit is contained in:
Tomasz Wlostowski 2018-08-03 11:05:33 +02:00 committed by Jeff Young
parent 7e1458a9ce
commit f82f310dd5
5 changed files with 21 additions and 0 deletions

View File

@ -1199,3 +1199,8 @@ unsigned int CAIRO_GAL::getNewGroupNumber()
return groupCounter++;
}
void CAIRO_GAL::EnableDepthTest( bool aEnabled )
{
}

View File

@ -2065,3 +2065,13 @@ static void InitTesselatorCallbacks( GLUtesselator* aTesselator )
gluTessCallback( aTesselator, GLU_TESS_EDGE_FLAG, ( void (CALLBACK*)() )EdgeCallback );
gluTessCallback( aTesselator, GLU_TESS_ERROR, ( void (CALLBACK*)() )ErrorCallback );
}
void OPENGL_GAL::EnableDepthTest( bool aEnabled )
{
if( aEnabled )
glEnable( GL_DEPTH_TEST );
else
{
glDisable( GL_DEPTH_TEST );
}
}

View File

@ -278,6 +278,8 @@ public:
paintListener = aPaintListener;
}
virtual void EnableDepthTest( bool aEnabled = false ) override;
protected:
virtual void drawGridLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ) override;

View File

@ -988,6 +988,8 @@ public:
depthStack.pop();
}
virtual void EnableDepthTest( bool aEnabled = false ) {};
static const double METRIC_UNIT_LENGTH;
protected:

View File

@ -276,6 +276,8 @@ public:
paintListener = aPaintListener;
}
virtual void EnableDepthTest( bool aEnabled = false ) override;
///< Parameters passed to the GLU tesselator
typedef struct
{