Panda3D
binCullHandler.h
1 // Filename: binCullHandler.h
2 // Created by: drose (28Feb02)
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 #ifndef BINCULLHANDLER_H
16 #define BINCULLHANDLER_H
17 
18 #include "pandabase.h"
19 #include "cullHandler.h"
20 #include "cullResult.h"
21 #include "pointerTo.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : BinCullHandler
25 // Description : This CullHandler sends all of the geoms it receives
26 // into a CullResult object, for binning (and later
27 // drawing). This is the kind of CullHandler to use for
28 // most normal rendering needs.
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDA_CULL BinCullHandler : public CullHandler {
31 public:
32  INLINE BinCullHandler(CullResult *cull_result);
33 
34  virtual void record_object(CullableObject *object,
35  const CullTraverser *traverser);
36 
37 private:
38  PT(CullResult) _cull_result;
39 };
40 
41 #include "binCullHandler.I"
42 
43 #endif
44 
45 
46 
This defines the abstract interface for an object that receives Geoms identified by the CullTraverser...
Definition: cullHandler.h:31
The smallest atom of cull.
virtual void record_object(CullableObject *object, const CullTraverser *traverser)
This callback function is intended to be overridden by a derived class.
Definition: cullHandler.cxx:52
This CullHandler sends all of the geoms it receives into a CullResult object, for binning (and later ...
This stores the result of a BinCullHandler traversal: an ordered collection of CullBins, each of which holds a number of Geoms and RenderStates to be rendered in some defined order.
Definition: cullResult.h:47
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...
Definition: cullTraverser.h:48