Panda3D
cullFaceAttrib.I
1 // Filename: cullFaceAttrib.I
2 // Created by: drose (27Feb02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: CullFaceAttrib::Constructor
18 // Access: Private
19 // Description: Use CullFaceAttrib::make() to construct a new
20 // CullFaceAttrib object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE CullFaceAttrib::
23 CullFaceAttrib(CullFaceAttrib::Mode mode, bool reverse) :
24  _mode(mode),
25  _reverse(reverse)
26 {
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: CullFaceAttrib::get_actual_mode
31 // Access: Published
32 // Description: Returns the actual culling mode, without considering
33 // the effects of the reverse flag. See also
34 // get_effective_mode().
35 ////////////////////////////////////////////////////////////////////
36 INLINE CullFaceAttrib::Mode CullFaceAttrib::
37 get_actual_mode() const {
38  return _mode;
39 }
40 
41 ////////////////////////////////////////////////////////////////////
42 // Function: CullFaceAttrib::get_reverse
43 // Access: Published
44 // Description: Returns the 'reverse' flag. If this is true, the
45 // actual cull direction (clockwise
46 // vs. counterclockwise) is the reverse of what is
47 // specified here. This allows support for
48 // make_reverse(), which defines a CullFaceAttrib that
49 // reverses whatever the sense of culling would have
50 // been.
51 ////////////////////////////////////////////////////////////////////
52 INLINE bool CullFaceAttrib::
53 get_reverse() const {
54  return _reverse;
55 }
Mode get_actual_mode() const
Returns the actual culling mode, without considering the effects of the reverse flag.
bool get_reverse() const
Returns the 'reverse' flag.