Panda3D
cullBinAttrib.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file cullBinAttrib.I
10  * @author drose
11  * @date 2002-03-01
12  */
13 
14 /**
15  * Use CullBinAttrib::make() to construct a new CullBinAttrib object.
16  */
17 INLINE CullBinAttrib::
18 CullBinAttrib() {
19  _draw_order = 0;
20 }
21 
22 /**
23  * Returns the name of the bin this attribute specifies. If this is the empty
24  * string, it refers to the default bin.
25  */
26 INLINE const std::string &CullBinAttrib::
27 get_bin_name() const {
28  return _bin_name;
29 }
30 
31 /**
32  * Returns the draw order this attribute specifies. Some bins (in particular,
33  * CullBinFixed bins) use this to further specify the order in which objects
34  * should be rendered.
35  */
36 INLINE int CullBinAttrib::
37 get_draw_order() const {
38  return _draw_order;
39 }