18 #include "pandatoolbase.h" 20 #include "fltRecord.h" 35 string _orig_filename;
52 FF_att_8_template = 1,
65 MN_mipmap_bilinear = 5,
66 MN_mipmap_trilinear = 6,
68 MN_bilinear_gequal = 9,
69 MN_bilinear_lequal = 10,
70 MN_bicubic_gequal = 11,
71 MN_bicubic_lequal = 12
80 MG_modulate_detail = 6,
81 MG_bilinear_gequal = 7,
82 MG_bilinear_lequal = 8,
83 MG_bicubic_gequal = 9,
84 MG_bicubic_lequal = 10
92 enum EnvironmentType {
112 enum ExternalFormat {
118 enum ProjectionType {
172 int _real_world_size_u;
173 int _real_world_size_v;
176 FileFormat _file_format;
177 Minification _min_filter;
178 Magnification _mag_filter;
180 RepeatType _repeat_u;
181 RepeatType _repeat_v;
185 EnvironmentType _env_type;
186 bool _intensity_is_alpha;
188 double _float_real_world_size_u;
189 double _float_real_world_size_v;
190 int _imported_origin_code;
192 InternalFormat _internal_format;
193 ExternalFormat _external_format;
194 bool _use_mipmap_kernel;
195 PN_stdfloat _mipmap_kernel[8];
199 Magnification _mag_filter_alpha;
200 Magnification _mag_filter_color;
201 double _lambert_conic_central_meridian;
202 double _lambert_conic_upper_latitude;
203 double _lambert_conic_lower_latitude;
209 int _detail_scramble;
211 PN_stdfloat _tile_lower_left_u;
212 PN_stdfloat _tile_lower_left_v;
213 PN_stdfloat _tile_upper_right_u;
214 PN_stdfloat _tile_upper_right_v;
215 ProjectionType _projection;
216 EarthModel _earth_model;
218 ImageOrigin _image_origin;
219 PointsUnits _geospecific_points_units;
220 Hemisphere _geospecific_hemisphere;
223 GeospecificControlPoints _geospecific_control_points;
224 SubtextureDefs _subtexture_defs;
231 FltError unpack_attr(
const Datagram &datagram);
232 FltError pack_attr(
Datagram &datagram)
const;
236 return get_class_type();
238 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
242 static void init_type() {
243 FltRecord::init_type();
244 register_type(_type_handle,
"FltTexture",
245 FltRecord::get_class_type());
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly...
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
Filename get_texture_filename() const
Returns the name of the texture image file.
void set_texture_filename(const Filename &filename)
Changes the name of the texture image file.
This is a two-component point in space.
FltError write_attr_data() const
Writes the texture's .attr file.
virtual void apply_converted_filenames()
Walks the hierarchy at this record and below and copies the _converted_filename record into the _orig...
Represents a single texture in the texture palette.
The name of a file, such as a texture file or an Egg file.
The base class for all kinds of records in a MultiGen OpenFlight file.
FltError read_attr_data()
Opens up the texture's .attr file and reads its data into the extra FltTexture fields.
TypeHandle is the identifier used to differentiate C++ class types.
Filename get_attr_filename() const
Returns the name of the texture's associated .attr file.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...