Panda3D
omitReason.cxx
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 omitReason.cxx
10  * @author drose
11  * @date 2000-12-02
12  */
13 
14 #include "omitReason.h"
15 
16 std::ostream &
17 operator << (std::ostream &out, OmitReason omit) {
18  switch (omit) {
19  case OR_none:
20  return out << "none";
21 
22  case OR_working:
23  return out << "working";
24 
25  case OR_omitted:
26  return out << "omitted";
27 
28  case OR_size:
29  return out << "size";
30 
31  case OR_solitary:
32  return out << "solitary";
33 
34  case OR_coverage:
35  return out << "coverage";
36 
37  case OR_unknown:
38  return out << "unknown";
39 
40  case OR_unused:
41  return out << "unused";
42 
43  case OR_default_omit:
44  return out << "default_omit";
45  }
46 
47  return out << "**invalid**(" << (int)omit << ")";
48 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
OmitReason
This enumerates the reasons why a texture may not have been placed in a palette image.
Definition: omitReason.h:23