Panda3D

cullResult.I

00001 // Filename: cullResult.I
00002 // Created by:  drose (28Feb02)
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: CullResult::Destructor
00018 //       Access: Public
00019 //  Description: 
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE CullResult::
00022 ~CullResult() {
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: CullResult::get_bin
00027 //       Access: Public
00028 //  Description: Returns the CullBin associated with the indicated
00029 //               bin_index, or NULL if the bin_index is invalid.  If
00030 //               there is the first time this bin_index has been
00031 //               requested for this CullResult, creates a new CullBin
00032 //               object on the fly.
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE CullBin *CullResult::
00035 get_bin(int bin_index) {
00036   if (bin_index >= 0 && bin_index < (int)_bins.size() && 
00037       _bins[bin_index] != (CullBin *)NULL) {
00038     return _bins[bin_index];
00039   }
00040   return make_new_bin(bin_index);
00041 }
 All Classes Functions Variables Enumerations