Panda3D
 All Classes Functions Variables Enumerations
cullBinAttrib.I
00001 // Filename: cullBinAttrib.I
00002 // Created by:  drose (01Mar02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: CullBinAttrib::Constructor
00018 //       Access: Private
00019 //  Description: Use CullBinAttrib::make() to construct a new
00020 //               CullBinAttrib object.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE CullBinAttrib::
00023 CullBinAttrib() {
00024   _draw_order = 0;
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: CullBinAttrib::get_bin_name
00029 //       Access: Published
00030 //  Description: Returns the name of the bin this attribute specifies.
00031 //               If this is the empty string, it refers to the default
00032 //               bin.
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE const string &CullBinAttrib::
00035 get_bin_name() const {
00036   return _bin_name;
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: CullBinAttrib::get_draw_order
00041 //       Access: Published
00042 //  Description: Returns the draw order this attribute specifies.
00043 //               Some bins (in particular, CullBinFixed bins) use this
00044 //               to further specify the order in which objects should
00045 //               be rendered.
00046 ////////////////////////////////////////////////////////////////////
00047 INLINE int CullBinAttrib::
00048 get_draw_order() const {
00049   return _draw_order;
00050 }
 All Classes Functions Variables Enumerations