Panda3D
cullBin.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 cullBin.I
10  * @author drose
11  * @date 2002-02-28
12  */
13 
14 /**
15  *
16  */
17 INLINE CullBin::
18 CullBin(const CullBin &copy) :
19  _name(copy._name),
20  _bin_type(copy._bin_type),
21  _gsg(copy._gsg),
22  _cull_this_pcollector(copy._cull_this_pcollector),
23  _draw_this_pcollector(copy._draw_this_pcollector)
24 {
25 }
26 
27 /**
28  *
29  */
30 INLINE CullBin::
31 CullBin(const std::string &name, CullBin::BinType bin_type,
33  const PStatCollector &draw_region_pcollector) :
34  _name(name),
35  _bin_type(bin_type),
36  _gsg(gsg),
37  _cull_this_pcollector(_cull_bin_pcollector, name),
38  _draw_this_pcollector(draw_region_pcollector, name)
39 {
40 }
41 
42 /**
43  *
44  */
45 INLINE const std::string &CullBin::
46 get_name() const {
47  return _name;
48 }
49 
50 /**
51  *
52  */
53 INLINE CullBin::BinType CullBin::
54 get_bin_type() const {
55  return _bin_type;
56 }
A collection of Geoms and their associated state, for a particular scene.
Definition: cullBin.h:40
A lightweight class that represents a single element that may be timed and/or counted via stats.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...