00001 // Filename: omitReason.h 00002 // Created by: drose (30Nov00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef OMITREASON_H 00020 #define OMITREASON_H 00021 00022 #include <pandatoolbase.h> 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Enum : OmitReason 00026 // Description : This enumerates the reasons why a texture may not 00027 // have been placed in a palette image. 00028 //////////////////////////////////////////////////////////////////// 00029 enum OmitReason { 00030 OR_none, 00031 // Not omitted: the texture appears on a palette image. 00032 00033 OR_working, 00034 // Still working on placing it. 00035 00036 OR_omitted, 00037 // Explicitly omitted by the user via "omit" in .txa file. 00038 00039 OR_size, 00040 // Too big to fit on a single palette image. 00041 00042 OR_solitary, 00043 // It should be placed, but it's the only one on the palette image 00044 // so far, so there's no point. 00045 00046 OR_coverage, 00047 // The texture repeats. Specifically, the UV's for the texture 00048 // exceed the maximum rectangle allowed by coverage_threshold. 00049 00050 OR_unknown, 00051 // The texture file cannot be read, so its size can't be determined. 00052 }; 00053 00054 ostream &operator << (ostream &out, OmitReason omit); 00055 00056 #endif 00057