fix build break

This commit is contained in:
David Rose 2002-03-01 02:06:50 +00:00
parent f79661eb9a
commit b5bf1088dd
2 changed files with 21 additions and 1 deletions

View File

@ -123,3 +123,22 @@ get_bin_sort(int bin_index) const {
nassertr(_bin_definitions[bin_index]._in_use, 0);
return _bin_definitions[bin_index]._sort;
}
////////////////////////////////////////////////////////////////////
// Function: CullBinManager::set_bin_sort
// Access: Published
// Description: Changes the sort order of the bin with the indicated
// bin_index (where bin_index was retrieved by get_bin()
// or find_bin()).
//
// The bins are rendered in increasing order by their
// sort order; this number may be changed from time to
// time to reorder the bins.
////////////////////////////////////////////////////////////////////
INLINE void CullBinManager::
set_bin_sort(int bin_index, int sort) {
nassertv(bin_index >= 0 && bin_index < (int)_bin_definitions.size());
nassertv(_bin_definitions[bin_index]._in_use);
_bin_definitions[bin_index]._sort = sort;
_bins_are_sorted = false;
}

View File

@ -24,6 +24,7 @@
#include "pointerTo.h"
#include "pvector.h"
#include "pmap.h"
#include "vector_int.h"
class CullResult;
class GraphicsStateGuardianBase;
@ -91,7 +92,7 @@ private:
typedef pmap<string, int> BinsByName;
BinsByName _bins_by_name;
typedef pvector<int> SortedBins;
typedef vector_int SortedBins;
SortedBins _sorted_bins;
bool _bins_are_sorted;
bool _unused_bin_index;