Panda3D
cullBinFixed.I
1 // Filename: cullBinFixed.I
2 // Created by: drose (29May02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: CullBinFixed::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE CullBinFixed::
22 CullBinFixed(const string &name, GraphicsStateGuardianBase *gsg,
23  const PStatCollector &draw_region_pcollector) :
24  CullBin(name, BT_fixed, gsg, draw_region_pcollector)
25 {
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: CullBinFixed::ObjectData::Constructor
30 // Access: Public
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE CullBinFixed::ObjectData::
34 ObjectData(CullableObject *object, int draw_order) :
35  _object(object),
36  _draw_order(draw_order)
37 {
38 }
39 
40 ////////////////////////////////////////////////////////////////////
41 // Function: CullBinFixed::ObjectData::operator <
42 // Access: Public
43 // Description: Specifies the correct sort ordering for these
44 // objects.
45 ////////////////////////////////////////////////////////////////////
46 INLINE bool CullBinFixed::ObjectData::
47 operator < (const ObjectData &other) const {
48  return _draw_order < other._draw_order;
49 }
50 
A collection of Geoms and their associated state, for a particular scene.
Definition: cullBin.h:44
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...