Support Forum G3D Web Page |
Public Member Functions | |
Specification () | |
Specification (const Any &any, bool assumesRGBForAuto=false, Dimension defaultDimension=DIM_2D) | |
If the any is a number or color, creates a colored texture of the default dimension. More... | |
Specification (const String &filename, bool assumesRGBForAuto=false, Dimension defaultDimension=DIM_2D) | |
Specification (const Color4 &c) | |
Specification (BinaryInput &b) | |
void | deserialize (BinaryInput &b) |
size_t | hashCode () const |
bool | operator!= (const Specification &s) const |
bool | operator== (const Specification &s) const |
void | serialize (BinaryOutput &b) const |
Any | toAny () const |
Public Attributes | |
String | alphaFilename |
bool | assumeSRGBSpaceForAuto |
If true and desiredFormat is auto, prefer SRGB formats to RGB ones. More... | |
bool | cachable |
If false, this texture may not be loaded from or stored in the global texture cache. More... | |
Dimension | dimension |
Defaults to Texture::DIM_2D. More... | |
Encoding | encoding |
Defaults to ImageFormat::AUTO() More... | |
String | filename |
bool | generateMipMaps |
Defaults to true. More... | |
String | name |
If non-empty, overwrites the filename as the Texture::name. More... | |
Preprocess | preprocess |
Visualization | visualization |
|
inline |
Referenced by Specification().
G3D::Texture::Specification::Specification | ( | const Any & | any, |
bool | assumesRGBForAuto = false , |
||
Dimension | defaultDimension = DIM_2D |
||
) |
If the any is a number or color, creates a colored texture of the default dimension.
If it is a string, loads that as a filename. Otherwise, parses all fields.
|
inlineexplicit |
|
inlineexplicit |
|
inline |
void G3D::Texture::Specification::deserialize | ( | BinaryInput & | b | ) |
Referenced by Specification().
size_t G3D::Texture::Specification::hashCode | ( | ) | const |
Referenced by HashTrait< G3D::Texture::Specification >::hashCode().
|
inline |
bool G3D::Texture::Specification::operator== | ( | const Specification & | s | ) | const |
void G3D::Texture::Specification::serialize | ( | BinaryOutput & | b | ) | const |
Any G3D::Texture::Specification::toAny | ( | ) | const |
String G3D::Texture::Specification::alphaFilename |
bool G3D::Texture::Specification::assumeSRGBSpaceForAuto |
If true and desiredFormat is auto, prefer SRGB formats to RGB ones.
bool G3D::Texture::Specification::cachable |
If false, this texture may not be loaded from or stored in the global texture cache.
Dimension G3D::Texture::Specification::dimension |
Defaults to Texture::DIM_2D.
Encoding G3D::Texture::Specification::encoding |
Defaults to ImageFormat::AUTO()
Referenced by Specification().
String G3D::Texture::Specification::filename |
Referenced by Specification().
bool G3D::Texture::Specification::generateMipMaps |
Defaults to true.
String G3D::Texture::Specification::name |
If non-empty, overwrites the filename as the Texture::name.
Preprocess G3D::Texture::Specification::preprocess |
Visualization G3D::Texture::Specification::visualization |