1 // Created on: 2013-09-26
2 // Created by: Dmitry BOBYLEV
3 // Copyright (c) 2013 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and / or modify it
8 // under the terms of the GNU Lesser General Public version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef OpenGl_StencilTest_Header
17 #define OpenGl_StencilTest_Header
19 #include <OpenGl_Element.hxx>
21 class OpenGl_StencilTest : public OpenGl_Element
25 //! Default constructor
26 OpenGl_StencilTest ();
28 //! Render primitives to the window
29 virtual void Render (const Handle(OpenGl_Workspace)& theWorkspace) const;
31 virtual void Release (const Handle(OpenGl_Context)& theContext);
33 void SetOptions (const Standard_Boolean theIsEnabled);
38 virtual ~OpenGl_StencilTest();
41 Standard_Boolean myIsEnabled;
48 #endif //OpenGl_StencilOptions_Header