Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE CullBin::
18CullBin(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 */
30INLINE CullBin::
31CullBin(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 */
45INLINE const std::string &CullBin::
46get_name() const {
47 return _name;
48}
49
50/**
51 *
52 */
53INLINE CullBin::BinType CullBin::
54get_bin_type() const {
55 return _bin_type;
56}
A collection of Geoms and their associated state, for a particular scene.
Definition cullBin.h:40
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
A lightweight class that represents a single element that may be timed and/or counted via stats.