Panda3D
 All Classes Functions Variables Enumerations
omitReason.h
1 // Filename: omitReason.h
2 // Created by: drose (30Nov00)
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 #ifndef OMITREASON_H
16 #define OMITREASON_H
17 
18 #include "pandatoolbase.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Enum : OmitReason
22 // Description : This enumerates the reasons why a texture may not
23 // have been placed in a palette image.
24 ////////////////////////////////////////////////////////////////////
25 enum OmitReason {
26  OR_none,
27  // Not omitted: the texture appears on a palette image.
28 
29  OR_working,
30  // Still working on placing it.
31 
32  OR_omitted,
33  // Explicitly omitted by the user via "omit" in .txa file.
34 
35  OR_size,
36  // Too big to fit on a single palette image.
37 
38  OR_solitary,
39  // It should be placed, but it's the only one on the palette image
40  // so far, so there's no point.
41 
42  OR_coverage,
43  // The texture repeats. Specifically, the UV's for the texture
44  // exceed the maximum rectangle allowed by coverage_threshold.
45 
46  OR_unknown,
47  // The texture file cannot be read, so its size can't be determined.
48 
49  OR_unused,
50  // The texture is no longer used by any of the egg files that
51  // formerly referenced it.
52 
53  OR_default_omit,
54  // The texture is omitted because _omit_everything is set true.
55 };
56 
57 ostream &operator << (ostream &out, OmitReason omit);
58 
59 #endif
60