00001 // Filename: cullBin.cxx 00002 // Created by: drose (28Feb02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "cullBin.h" 00020 00021 00022 TypeHandle CullBin::_type_handle; 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Function: CullBin::Destructor 00026 // Access: Public, Virtual 00027 // Description: 00028 //////////////////////////////////////////////////////////////////// 00029 CullBin:: 00030 ~CullBin() { 00031 } 00032 00033 //////////////////////////////////////////////////////////////////// 00034 // Function: CullBin::make_next 00035 // Access: Public, Virtual 00036 // Description: Returns a newly-allocated CullBin object that 00037 // contains a copy of just the subset of the data from 00038 // this CullBin object that is worth keeping around 00039 // for next frame. 00040 // 00041 // If a particular CullBin object has no data worth 00042 // preserving till next frame, it is acceptable to 00043 // return NULL (which is the default behavior of this 00044 // method). 00045 //////////////////////////////////////////////////////////////////// 00046 PT(CullBin) CullBin:: 00047 make_next() const { 00048 return (CullBin *)NULL; 00049 } 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function: CullBin::add_object 00053 // Access: Public, Virtual 00054 // Description: Adds a geom, along with its associated state, to 00055 // the bin for rendering. 00056 //////////////////////////////////////////////////////////////////// 00057 void CullBin:: 00058 add_object(CullableObject *) { 00059 } 00060 00061 //////////////////////////////////////////////////////////////////// 00062 // Function: CullBin::finish_cull 00063 // Access: Public 00064 // Description: Called after all the geoms have been added, this 00065 // indicates that the cull process is finished for this 00066 // frame and gives the bins a chance to do any 00067 // post-processing (like sorting) before moving on to 00068 // draw. 00069 //////////////////////////////////////////////////////////////////// 00070 void CullBin:: 00071 finish_cull() { 00072 } 00073 00074 //////////////////////////////////////////////////////////////////// 00075 // Function: CullBin::draw 00076 // Access: Public 00077 // Description: Draws all the geoms in the bin, in the appropriate 00078 // order. 00079 //////////////////////////////////////////////////////////////////// 00080 void CullBin:: 00081 draw() { 00082 } 00083