Panda3D
 All Classes Functions Variables Enumerations
binCullHandler.cxx
1 // Filename: binCullHandler.cxx
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 #include "binCullHandler.h"
16 #include "pStatTimer.h"
17 
18 ////////////////////////////////////////////////////////////////////
19 // Function: BinCullHandler::record_object
20 // Access: Public, Virtual
21 // Description: This callback function is intended to be overridden
22 // by a derived class. This is called as each Geom is
23 // discovered by the CullTraverser.
24 ////////////////////////////////////////////////////////////////////
26 record_object(CullableObject *object, const CullTraverser *traverser) {
27  _cull_result->add_object(object, traverser);
28 }
virtual void record_object(CullableObject *object, const CullTraverser *traverser)
This callback function is intended to be overridden by a derived class.
The smallest atom of cull.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...
Definition: cullTraverser.h:48