This is the set of characteristics of a texture that, if different from another texture, prevent the two textures from sharing a PaletteImage.
More...
Public Member Functions |
|
| TextureProperties (const TextureProperties ©) |
| void | clear_basic () |
| | Resets only the properties that might be changed by update_properties() to a neutral state.
|
| virtual int | complete_pointers (TypedWritable **p_list, BamReader *manager) |
| | Called after the object is otherwise completely read from a Bam file, this function's job is to store the pointers that were retrieved from the Bam file for each pointer object written.
|
| bool | egg_properties_match (const TextureProperties &other) const |
| | Returns true if all of the properties that are reflected directly in an egg file match between this TextureProperties object and the other, or false if any of them differ.
|
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | Reads the binary data from the given datagram iterator, which was written by a previous call to write_datagram().
|
| void | force_grayscale () |
| | Sets the actual number of channels to indicate a grayscale image, presumably after discovering that the image contains no colored pixels.
|
| void | force_nonalpha () |
| | Sets the actual number of channels to indicate an image with no alpha channel, presumably after discovering that the alpha channel contains no meaningful pixels.
|
| void | fully_define () |
| | If any properties remain unspecified, specify them now.
|
| int | get_num_channels () const |
| | Returns the number of channels (1 through 4) associated with the image.
|
| string | get_string () const |
| | Returns a string corresponding to the TextureProperties object.
|
|
virtual TypeHandle | get_type () const |
| bool | has_num_channels () const |
| | Returns true if the number of channels is known.
|
|
bool | operator!= (const TextureProperties &other) const |
|
bool | operator< (const TextureProperties &other) const |
|
void | operator= (const TextureProperties ©) |
|
bool | operator== (const TextureProperties &other) const |
| void | set_num_channels (int num_channels) |
| | Sets the number of channels (1 through 4) associated with the image, presumably after reading this information from the image header.
|
| void | update_egg_tex (EggTexture *egg_tex) const |
| | Adjusts the texture properties of the indicated egg reference to match these properties.
|
| void | update_properties (const TextureProperties &other) |
| | If the indicate TextureProperties structure is more specific than this one, updates this one.
|
| bool | uses_alpha () const |
| | Returns true if the texture uses an alpha channel, false otherwise.
|
| virtual void | write_datagram (BamWriter *writer, Datagram &datagram) |
| | Fills the indicated datagram up with a binary representation of the current object, in preparation for writing to a Bam file.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
| static void | init_type () |
| | This function is declared non-inline to work around a compiler bug in g++ 2.96.
|
| static void | register_with_read_factory () |
| | Registers the current object as something that can be read from a Bam file.
|
Public Attributes |
|
PNMFileType * | _alpha_type |
|
int | _anisotropic_degree |
|
PNMFileType * | _color_type |
|
bool | _force_format |
|
EggTexture::Format | _format |
|
bool | _generic_format |
|
bool | _keep_format |
|
EggTexture::FilterType | _magfilter |
|
EggTexture::FilterType | _minfilter |
|
EggTexture::QualityLevel | _quality_level |
Static Protected Member Functions |
| static TypedWritable * | make_TextureProperties (const FactoryParams ¶ms) |
| | This method is called by the BamReader when an object of this type is encountered in a Bam file; it should allocate and return a new object with all the data read.
|
This is the set of characteristics of a texture that, if different from another texture, prevent the two textures from sharing a PaletteImage.
It includes properties such as mipmapping, number of channels, etc.
Definition at line 34 of file textureProperties.h.