Panda3D
 All Classes Functions Variables Enumerations
pipeOcclusionCullTraverser.I
1 // Filename: pipeOcclusionCullTraverser.I
2 // Created by: drose (29May07)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: PipeOcclusionCullTraverser::get_buffer
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE GraphicsOutput *PipeOcclusionCullTraverser::
22 get_buffer() const {
23  return _buffer;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: PipeOcclusionCullTraverser::set_occlusion_mask
28 // Access: Public
29 // Description: Specifies the DrawMask that should be set on
30 // occlusion polygons for this scene. This identifies
31 // the polygons that are to be treated as occluders.
32 // Polygons that do not have this draw mask set will not
33 // be considered occluders.
34 ////////////////////////////////////////////////////////////////////
36 set_occlusion_mask(const DrawMask &occlusion_mask) {
37  _occlusion_mask = occlusion_mask;
38 }
39 
40 ////////////////////////////////////////////////////////////////////
41 // Function: PipeOcclusionCullTraverser::get_occlusion_mask
42 // Access: Public
43 // Description: Returns the DrawMask for occlusion polygons. See
44 // set_occlusion_mask().
45 ////////////////////////////////////////////////////////////////////
48  return _occlusion_mask;
49 }
50 
51 ////////////////////////////////////////////////////////////////////
52 // Function: PipeOcclusionCullTraverser::PendingObject::Constructor
53 // Access: Public
54 // Description:
55 ////////////////////////////////////////////////////////////////////
56 INLINE PipeOcclusionCullTraverser::PendingObject::
57 PendingObject(CullableObject *object) :
58  _object(object)
59 {
60 }
61 
62 ////////////////////////////////////////////////////////////////////
63 // Function: PipeOcclusionCullTraverser::PendingObject::Destructor
64 // Access: Public
65 // Description:
66 ////////////////////////////////////////////////////////////////////
67 INLINE PipeOcclusionCullTraverser::PendingObject::
68 ~PendingObject() {
69  // Tempting as it is, we shouldn't delete the CullableObject in the
70  // destructor, since it has already been deleted.
71  // delete _object;
72 }
The smallest atom of cull.
This is a base class for the various different classes that represent the result of a frame of render...
const DrawMask & get_occlusion_mask() const
Returns the DrawMask for occlusion polygons.
void set_occlusion_mask(const DrawMask &occlusion_mask)
Specifies the DrawMask that should be set on occlusion polygons for this scene.