a6eb515f |
1 | // Created on: 2013-09-26 |
2 | // Created by: Dmitry BOBYLEV |
d5f74e42 |
3 | // Copyright (c) 2013-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
a6eb515f |
16 | #ifndef OpenGl_StencilTest_Header |
17 | #define OpenGl_StencilTest_Header |
7fd59977 |
18 | |
a6eb515f |
19 | #include <OpenGl_Element.hxx> |
20 | |
21 | class OpenGl_StencilTest : public OpenGl_Element |
7fd59977 |
22 | { |
a6eb515f |
23 | public: |
24 | |
25 | //! Default constructor |
b31fbc83 |
26 | Standard_EXPORT OpenGl_StencilTest (); |
a6eb515f |
27 | |
28 | //! Render primitives to the window |
bc73b006 |
29 | Standard_EXPORT virtual void Render (const Handle(OpenGl_Workspace)& theWorkspace) const Standard_OVERRIDE; |
a6eb515f |
30 | |
bc73b006 |
31 | Standard_EXPORT virtual void Release (OpenGl_Context* theContext) Standard_OVERRIDE; |
a6eb515f |
32 | |
b31fbc83 |
33 | Standard_EXPORT void SetOptions (const Standard_Boolean theIsEnabled); |
a6eb515f |
34 | |
bc73b006 |
35 | //! Dumps the content of me into the stream |
36 | Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; |
37 | |
a6eb515f |
38 | protected: |
39 | |
40 | //! Destructor |
b31fbc83 |
41 | Standard_EXPORT virtual ~OpenGl_StencilTest(); |
a6eb515f |
42 | |
43 | private: |
44 | Standard_Boolean myIsEnabled; |
45 | |
46 | public: |
47 | |
48 | DEFINE_STANDARD_ALLOC |
49 | }; |
50 | |
973c2be1 |
51 | #endif //OpenGl_StencilOptions_Header |