Panda3D
 All Classes Functions Variables Enumerations
depthWriteAttrib.I
1 // Filename: depthWriteAttrib.I
2 // Created by: drose (04Mar02)
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: DepthWriteAttrib::Constructor
18 // Access: Private
19 // Description: Use DepthWriteAttrib::make() to construct a new
20 // DepthWriteAttrib object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE DepthWriteAttrib::
23 DepthWriteAttrib(DepthWriteAttrib::Mode mode) :
24  _mode(mode)
25 {
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: DepthWriteAttrib::get_mode
30 // Access: Published
31 // Description: Returns the depth write mode.
32 ////////////////////////////////////////////////////////////////////
33 INLINE DepthWriteAttrib::Mode DepthWriteAttrib::
34 get_mode() const {
35  return _mode;
36 }
Mode get_mode() const
Returns the depth write mode.