Panda3D
panda
src
grutil
pipeOcclusionCullTraverser.I
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 pipeOcclusionCullTraverser.I
10
* @author drose
11
* @date 2007-05-29
12
*/
13
14
/**
15
*
16
*/
17
INLINE
GraphicsOutput
*PipeOcclusionCullTraverser::
18
get_buffer()
const
{
19
return
_buffer;
20
}
21
22
/**
23
* Specifies the DrawMask that should be set on occlusion polygons for this
24
* scene. This identifies the polygons that are to be treated as occluders.
25
* Polygons that do not have this draw mask set will not be considered
26
* occluders.
27
*/
28
INLINE
void
PipeOcclusionCullTraverser::
29
set_occlusion_mask
(
const
DrawMask
&occlusion_mask) {
30
_occlusion_mask = occlusion_mask;
31
}
32
33
/**
34
* Returns the DrawMask for occlusion polygons. See set_occlusion_mask().
35
*/
36
INLINE
const
DrawMask
&
PipeOcclusionCullTraverser::
37
get_occlusion_mask
()
const
{
38
return
_occlusion_mask;
39
}
40
41
/**
42
*
43
*/
44
INLINE PipeOcclusionCullTraverser::PendingObject::
45
PendingObject(
CullableObject
*
object
) :
46
_object(object)
47
{
48
}
49
50
/**
51
*
52
*/
53
INLINE PipeOcclusionCullTraverser::PendingObject::
54
~PendingObject() {
55
// Tempting as it is, we shouldn't delete the CullableObject in the
56
// destructor, since it has already been deleted. delete _object;
57
}
CullableObject
The smallest atom of cull.
Definition:
cullableObject.h:41
BitMask< uint32_t, 32 >
GraphicsOutput
This is a base class for the various different classes that represent the result of a frame of render...
Definition:
graphicsOutput.h:63
PipeOcclusionCullTraverser::set_occlusion_mask
void set_occlusion_mask(const DrawMask &occlusion_mask)
Specifies the DrawMask that should be set on occlusion polygons for this scene.
Definition:
pipeOcclusionCullTraverser.I:29
PipeOcclusionCullTraverser::get_occlusion_mask
const DrawMask & get_occlusion_mask() const
Returns the DrawMask for occlusion polygons.
Definition:
pipeOcclusionCullTraverser.I:37
Generated on Sat Jan 11 2020 15:15:13 for Panda3D by
1.8.17