Panda3D
 All Classes Functions Variables Enumerations
binCullHandler.h
00001 // Filename: binCullHandler.h
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 #ifndef BINCULLHANDLER_H
00016 #define BINCULLHANDLER_H
00017 
00018 #include "pandabase.h"
00019 #include "cullHandler.h"
00020 #include "cullResult.h"
00021 #include "pointerTo.h"
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //       Class : BinCullHandler
00025 // Description : This CullHandler sends all of the geoms it receives
00026 //               into a CullResult object, for binning (and later
00027 //               drawing).  This is the kind of CullHandler to use for
00028 //               most normal rendering needs.
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDA_CULL BinCullHandler : public CullHandler {
00031 public:
00032   INLINE BinCullHandler(CullResult *cull_result);
00033 
00034   virtual void record_object(CullableObject *object, 
00035                              const CullTraverser *traverser);
00036 
00037 private:
00038   PT(CullResult) _cull_result;
00039 };
00040 
00041 #include "binCullHandler.I"
00042 
00043 #endif
00044 
00045 
00046   
 All Classes Functions Variables Enumerations