33 std::string _orig_filename;
50 FF_att_8_template = 1,
63 MN_mipmap_bilinear = 5,
64 MN_mipmap_trilinear = 6,
66 MN_bilinear_gequal = 9,
67 MN_bilinear_lequal = 10,
68 MN_bicubic_gequal = 11,
69 MN_bicubic_lequal = 12
78 MG_modulate_detail = 6,
79 MG_bilinear_gequal = 7,
80 MG_bilinear_lequal = 8,
81 MG_bicubic_gequal = 9,
82 MG_bicubic_lequal = 10
90 enum EnvironmentType {
110 enum ExternalFormat {
116 enum ProjectionType {
154 LPoint2d _real_earth;
170 int _real_world_size_u;
171 int _real_world_size_v;
174 FileFormat _file_format;
175 Minification _min_filter;
176 Magnification _mag_filter;
178 RepeatType _repeat_u;
179 RepeatType _repeat_v;
183 EnvironmentType _env_type;
184 bool _intensity_is_alpha;
186 double _float_real_world_size_u;
187 double _float_real_world_size_v;
188 int _imported_origin_code;
190 InternalFormat _internal_format;
191 ExternalFormat _external_format;
192 bool _use_mipmap_kernel;
193 PN_stdfloat _mipmap_kernel[8];
197 Magnification _mag_filter_alpha;
198 Magnification _mag_filter_color;
199 double _lambert_conic_central_meridian;
200 double _lambert_conic_upper_latitude;
201 double _lambert_conic_lower_latitude;
207 int _detail_scramble;
209 PN_stdfloat _tile_lower_left_u;
210 PN_stdfloat _tile_lower_left_v;
211 PN_stdfloat _tile_upper_right_u;
212 PN_stdfloat _tile_upper_right_v;
213 ProjectionType _projection;
214 EarthModel _earth_model;
216 ImageOrigin _image_origin;
217 PointsUnits _geospecific_points_units;
218 Hemisphere _geospecific_hemisphere;
219 std::string _comment;
229 FltError unpack_attr(
const Datagram &datagram);
230 FltError pack_attr(
Datagram &datagram)
const;
234 return get_class_type();
236 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
240 static void init_type() {
241 FltRecord::init_type();
243 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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_texture_filename(const Filename &filename)
Changes the name of the texture image file.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 ...