Panda3D

Loading...
Searching...
No Matches
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"
19#include "graphicsStateGuardianBase.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,
38 GraphicsStateGuardianBase *gsg,
39 bool force, Thread *current_thread);
40};
41
42#include "cullHandler.I"
43
44#endif
CullHandler::end_traverse
virtual void end_traverse()
This callback function is intended to be overridden by a derived class.
Definition cullHandler.cxx:54
CullHandler::record_object
virtual void record_object(CullableObject *object, const CullTraverser *traverser)
This callback function is intended to be overridden by a derived class.
Definition cullHandler.cxx:43
CullHandler::draw
static void draw(CullableObject *object, GraphicsStateGuardianBase *gsg, bool force, Thread *current_thread)
Draws the indicated CullableObject, with full support for decals if they are attached to the object.
Definition cullHandler.I:20
CullTraverser
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
Definition cullTraverser.h:45
CullableObject
The smallest atom of cull.
Definition cullableObject.h:41
GraphicsStateGuardianBase
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
Definition graphicsStateGuardianBase.h:110
Thread
A thread; that is, a lightweight process.
Definition thread.h:46
cullHandler.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
cullableObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
graphicsStateGuardianBase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.