Panda3D
alphaTestAttrib.I
1 // Filename: alphaTestAttrib.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: AlphaTestAttrib::Constructor
18 // Access: Private
19 // Description: Use AlphaTestAttrib::make() to construct a new
20 // AlphaTestAttrib object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE AlphaTestAttrib::
23 AlphaTestAttrib(AlphaTestAttrib::PandaCompareFunc mode,
24  PN_stdfloat reference_alpha) :
25  _mode(mode), _reference_alpha(reference_alpha)
26 {
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: AlphaTestAttrib::get_mode
31 // Access: Published
32 // Description: Returns the alpha write mode.
33 ////////////////////////////////////////////////////////////////////
34 INLINE AlphaTestAttrib::PandaCompareFunc AlphaTestAttrib::
35 get_mode() const {
36  return _mode;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: AlphaTestAttrib::get_reference_alpha
41 // Access: Published
42 // Description: Returns the alpha reference value.
43 ////////////////////////////////////////////////////////////////////
44 INLINE PN_stdfloat AlphaTestAttrib::
46  return _reference_alpha;
47 }
PandaCompareFunc get_mode() const
Returns the alpha write mode.
PN_stdfloat get_reference_alpha() const
Returns the alpha reference value.