Panda3D
 All Classes Functions Variables Enumerations
omitReason.h
00001 // Filename: omitReason.h
00002 // Created by:  drose (30Nov00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef OMITREASON_H
00016 #define OMITREASON_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //        Enum : OmitReason
00022 // Description : This enumerates the reasons why a texture may not
00023 //               have been placed in a palette image.
00024 ////////////////////////////////////////////////////////////////////
00025 enum OmitReason {
00026   OR_none,
00027   // Not omitted: the texture appears on a palette image.
00028 
00029   OR_working,
00030   // Still working on placing it.
00031 
00032   OR_omitted,
00033   // Explicitly omitted by the user via "omit" in .txa file.
00034 
00035   OR_size,
00036   // Too big to fit on a single palette image.
00037 
00038   OR_solitary,
00039   // It should be placed, but it's the only one on the palette image
00040   // so far, so there's no point.
00041 
00042   OR_coverage,
00043   // The texture repeats.  Specifically, the UV's for the texture
00044   // exceed the maximum rectangle allowed by coverage_threshold.
00045 
00046   OR_unknown,
00047   // The texture file cannot be read, so its size can't be determined.
00048 
00049   OR_unused,
00050   // The texture is no longer used by any of the egg files that
00051   // formerly referenced it.
00052 
00053   OR_default_omit,
00054   // The texture is omitted because _omit_everything is set true.
00055 };
00056 
00057 ostream &operator << (ostream &out, OmitReason omit);
00058 
00059 #endif
00060 
 All Classes Functions Variables Enumerations