eeschema-gal: added EnableDepthTest() feature in GAL
This commit is contained in:
parent
7e1458a9ce
commit
f82f310dd5
|
@ -1199,3 +1199,8 @@ unsigned int CAIRO_GAL::getNewGroupNumber()
|
|||
|
||||
return groupCounter++;
|
||||
}
|
||||
|
||||
void CAIRO_GAL::EnableDepthTest( bool aEnabled )
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -988,6 +988,8 @@ public:
|
|||
depthStack.pop();
|
||||
}
|
||||
|
||||
virtual void EnableDepthTest( bool aEnabled = false ) {};
|
||||
|
||||
static const double METRIC_UNIT_LENGTH;
|
||||
|
||||
protected:
|
||||
|
|
|
@ -276,6 +276,8 @@ public:
|
|||
paintListener = aPaintListener;
|
||||
}
|
||||
|
||||
virtual void EnableDepthTest( bool aEnabled = false ) override;
|
||||
|
||||
///< Parameters passed to the GLU tesselator
|
||||
typedef struct
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue