Panda3D
 All Classes Functions Variables Enumerations
cullBinAttrib.I
1 // Filename: cullBinAttrib.I
2 // Created by: drose (01Mar02)
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: CullBinAttrib::Constructor
18 // Access: Private
19 // Description: Use CullBinAttrib::make() to construct a new
20 // CullBinAttrib object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE CullBinAttrib::
23 CullBinAttrib() {
24  _draw_order = 0;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: CullBinAttrib::get_bin_name
29 // Access: Published
30 // Description: Returns the name of the bin this attribute specifies.
31 // If this is the empty string, it refers to the default
32 // bin.
33 ////////////////////////////////////////////////////////////////////
34 INLINE const string &CullBinAttrib::
35 get_bin_name() const {
36  return _bin_name;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: CullBinAttrib::get_draw_order
41 // Access: Published
42 // Description: Returns the draw order this attribute specifies.
43 // Some bins (in particular, CullBinFixed bins) use this
44 // to further specify the order in which objects should
45 // be rendered.
46 ////////////////////////////////////////////////////////////////////
47 INLINE int CullBinAttrib::
48 get_draw_order() const {
49  return _draw_order;
50 }
const string & get_bin_name() const
Returns the name of the bin this attribute specifies.
Definition: cullBinAttrib.I:35
int get_draw_order() const
Returns the draw order this attribute specifies.
Definition: cullBinAttrib.I:48