Panda3D
 All Classes Functions Variables Enumerations
textureRequest.h
1 // Filename: textureRequest.h
2 // Created by: drose (29Nov00)
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 TEXTUREREQUEST_H
16 #define TEXTUREREQUEST_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "textureProperties.h"
21 
22 #include "eggTexture.h"
23 #include "eggRenderMode.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : TextureRequest
27 // Description : These are the things that a user might explicitly
28 // request to adjust on a texture via a line in the .txa
29 // file.
30 ////////////////////////////////////////////////////////////////////
32 public:
34  void pre_txa_file();
35 
36  TextureProperties _properties;
37 
38  bool _got_size;
39  bool _got_num_channels;
40  int _x_size;
41  int _y_size;
42  int _num_channels;
43  EggTexture::Format _format;
44  bool _force_format;
45  bool _generic_format;
46  bool _keep_format;
47  EggTexture::FilterType _minfilter;
48  EggTexture::FilterType _magfilter;
49  int _anisotropic_degree;
50  EggRenderMode::AlphaMode _alpha_mode;
51  EggTexture::WrapMode _wrap_u, _wrap_v;
52  bool _omit;
53  int _margin;
54  double _coverage_threshold;
55 };
56 
57 #endif
58 
void pre_txa_file()
Sets some state up that must be set prior to reading the .txa file.
These are the things that a user might explicitly request to adjust on a texture via a line in the ...
This is the set of characteristics of a texture that, if different from another texture, prevent the two textures from sharing a PaletteImage.