Panda3D

Loading...
Searching...
No Matches
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 */
17INLINE CullBinFrontToBack::
18CullBinFrontToBack(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 */
27INLINE CullBinFrontToBack::ObjectData::
28ObjectData(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 */
37INLINE bool CullBinFrontToBack::ObjectData::
38operator < (const ObjectData &other) const {
39 return _dist < other._dist;
40}
CullBin
A collection of Geoms and their associated state, for a particular scene.
Definition cullBin.h:40
CullableObject
The smallest atom of cull.
Definition cullableObject.h:41
GraphicsStateGuardianBase
This is a base class for the GraphicsStateGuardian class, which is itself a base class for the variou...
Definition graphicsStateGuardianBase.h:110
PStatCollector
A lightweight class that represents a single element that may be timed and/or counted via stats.
Definition pStatCollector.h:43