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
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This defines the abstract interface for an object that receives Geoms identified by the CullTraverser...
Definition: cullHandler.h:28
The smallest atom of cull.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A thread; that is, a lightweight process.
Definition: thread.h:46
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
Definition: cullTraverser.h:45