1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #ifndef _Graphic3d_CAspectFillArea_HeaderFile
16 #define _Graphic3d_CAspectFillArea_HeaderFile
18 #include <InterfaceGraphic_Visual3d.hxx>
19 #include <Graphic3d_CTexture.hxx>
20 #include <Graphic3d_ShaderProgram.hxx>
22 class Graphic3d_CAspectFillArea
27 Graphic3d_CAspectFillArea()
37 PolygonOffsetMode (0),
38 PolygonOffsetFactor (0.0f),
39 PolygonOffsetUnits (0.0f)
41 memset (&IntColor, 0, sizeof(IntColor));
42 memset (&BackIntColor, 0, sizeof(BackIntColor));
43 memset (&EdgeColor, 0, sizeof(EdgeColor));
44 memset (&Front, 0, sizeof(Front));
45 memset (&Back, 0, sizeof(Back));
54 CALL_DEF_COLOR IntColor;
55 CALL_DEF_COLOR BackIntColor;
56 CALL_DEF_COLOR EdgeColor;
69 CALL_DEF_MATERIAL Front;
70 CALL_DEF_MATERIAL Back;
72 Graphic3d_CTexture Texture;
74 int PolygonOffsetMode;
75 float PolygonOffsetFactor;
76 float PolygonOffsetUnits;
78 Handle(Graphic3d_ShaderProgram) ShaderProgram;
82 typedef Graphic3d_CAspectFillArea CALL_DEF_CONTEXTFILLAREA;
84 #endif // _Graphic3d_CAspectFillArea_HeaderFile