Panda3D
cullHandler.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file cullHandler.h
10  * @author drose
11  * @date 2002-02-23
12  */
13 
14 #ifndef CULLHANDLER_H
15 #define CULLHANDLER_H
16 
17 #include "pandabase.h"
18 #include "cullableObject.h"
20 
21 class CullTraverser;
22 
23 /**
24  * This defines the abstract interface for an object that receives Geoms
25  * identified by the CullTraverser. By itself, it's not a particularly useful
26  * class; to use it, derive from it and redefine record_object().
27  */
28 class EXPCL_PANDA_PGRAPH CullHandler {
29 public:
30  CullHandler();
31  virtual ~CullHandler();
32 
33  virtual void record_object(CullableObject *object,
34  const CullTraverser *traverser);
35  virtual void end_traverse();
36 
37  INLINE static void draw(CullableObject *object,
39  bool force, Thread *current_thread);
40 };
41 
42 #include "cullHandler.I"
43 
44 #endif
CullableObject
The smallest atom of cull.
Definition: cullableObject.h:41
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
cullableObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
cullHandler.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
CullTraverser
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
Definition: cullTraverser.h:45
GraphicsStateGuardianBase
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
Definition: graphicsStateGuardianBase.h:110
graphicsStateGuardianBase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Thread
A thread; that is, a lightweight process.
Definition: thread.h:46
CullHandler
This defines the abstract interface for an object that receives Geoms identified by the CullTraverser...
Definition: cullHandler.h:28