Panda3D

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