Panda3D
drawCullHandler.h
1 // Filename: drawCullHandler.h
2 // Created by: drose (25Feb02)
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 DRAWCULLHANDLER_H
16 #define DRAWCULLHANDLER_H
17 
18 #include "pandabase.h"
19 #include "cullHandler.h"
20 
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : DrawCullHandler
25 // Description : This special kind of CullHandler immediately draws
26 // its contents as soon as it receives them. This draws
27 // geometry immediately as it is encountered in the
28 // scene graph by cull, mixing the draw and cull
29 // traversals into one traversal, and prohibiting state
30 // sorting. However, it has somewhat lower overhead
31 // than separating out draw and cull, if state sorting
32 // and multiprocessing are not required.
33 ////////////////////////////////////////////////////////////////////
34 class EXPCL_PANDA_CULL DrawCullHandler : public CullHandler {
35 public:
37 
38  virtual void record_object(CullableObject *object,
39  const CullTraverser *traverser);
40 
41 private:
43 };
44 
45 #include "drawCullHandler.I"
46 
47 #endif
48 
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 special kind of CullHandler immediately draws its contents as soon as it receives them...
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...
Definition: cullTraverser.h:48