Panda3D
|
00001 // Filename: textureRequest.h 00002 // Created by: drose (29Nov00) 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 TEXTUREREQUEST_H 00016 #define TEXTUREREQUEST_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "textureProperties.h" 00021 00022 #include "eggTexture.h" 00023 #include "eggRenderMode.h" 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : TextureRequest 00027 // Description : These are the things that a user might explicitly 00028 // request to adjust on a texture via a line in the .txa 00029 // file. 00030 //////////////////////////////////////////////////////////////////// 00031 class TextureRequest { 00032 public: 00033 TextureRequest(); 00034 void pre_txa_file(); 00035 00036 TextureProperties _properties; 00037 00038 bool _got_size; 00039 bool _got_num_channels; 00040 int _x_size; 00041 int _y_size; 00042 int _num_channels; 00043 EggTexture::Format _format; 00044 bool _force_format; 00045 bool _generic_format; 00046 bool _keep_format; 00047 EggTexture::FilterType _minfilter; 00048 EggTexture::FilterType _magfilter; 00049 int _anisotropic_degree; 00050 EggRenderMode::AlphaMode _alpha_mode; 00051 EggTexture::WrapMode _wrap_u, _wrap_v; 00052 bool _omit; 00053 int _margin; 00054 double _coverage_threshold; 00055 }; 00056 00057 #endif 00058