Panda3D
cullBinFrontToBack.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 cullBinFrontToBack.I
10  * @author drose
11  * @date 2002-05-29
12  */
13 
14 /**
15  *
16  */
17 INLINE CullBinFrontToBack::
18 CullBinFrontToBack(const std::string &name, GraphicsStateGuardianBase *gsg,
19  const PStatCollector &draw_region_pcollector) :
20  CullBin(name, BT_front_to_back, gsg, draw_region_pcollector)
21 {
22 }
23 
24 /**
25  *
26  */
27 INLINE CullBinFrontToBack::ObjectData::
28 ObjectData(CullableObject *object, PN_stdfloat dist) :
29  _object(object),
30  _dist(dist)
31 {
32 }
33 
34 /**
35  * Specifies the correct sort ordering for these objects.
36  */
37 INLINE bool CullBinFrontToBack::ObjectData::
38 operator < (const ObjectData &other) const {
39  return _dist < other._dist;
40 }
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.
The smallest atom of cull.
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...