Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::Texture::Specification Class Reference

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
 

Constructor & Destructor Documentation

◆ Specification() [1/5]

G3D::Texture::Specification::Specification ( )
inline

Referenced by Specification().

◆ Specification() [2/5]

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.

◆ Specification() [3/5]

G3D::Texture::Specification::Specification ( const String filename,
bool  assumesRGBForAuto = false,
Dimension  defaultDimension = DIM_2D 
)
inlineexplicit

◆ Specification() [4/5]

G3D::Texture::Specification::Specification ( const Color4 c)
inlineexplicit

◆ Specification() [5/5]

G3D::Texture::Specification::Specification ( BinaryInput b)
inline

Member Function Documentation

◆ deserialize()

void G3D::Texture::Specification::deserialize ( BinaryInput b)

Referenced by Specification().

◆ hashCode()

size_t G3D::Texture::Specification::hashCode ( ) const

◆ operator!=()

bool G3D::Texture::Specification::operator!= ( const Specification s) const
inline

◆ operator==()

bool G3D::Texture::Specification::operator== ( const Specification s) const

◆ serialize()

void G3D::Texture::Specification::serialize ( BinaryOutput b) const

◆ toAny()

Any G3D::Texture::Specification::toAny ( ) const

Member Data Documentation

◆ alphaFilename

String G3D::Texture::Specification::alphaFilename

◆ assumeSRGBSpaceForAuto

bool G3D::Texture::Specification::assumeSRGBSpaceForAuto

If true and desiredFormat is auto, prefer SRGB formats to RGB ones.

◆ cachable

bool G3D::Texture::Specification::cachable

If false, this texture may not be loaded from or stored in the global texture cache.

◆ dimension

Dimension G3D::Texture::Specification::dimension

Defaults to Texture::DIM_2D.

◆ encoding

Encoding G3D::Texture::Specification::encoding

Defaults to ImageFormat::AUTO()

Referenced by Specification().

◆ filename

String G3D::Texture::Specification::filename

Referenced by Specification().

◆ generateMipMaps

bool G3D::Texture::Specification::generateMipMaps

Defaults to true.

◆ name

String G3D::Texture::Specification::name

If non-empty, overwrites the filename as the Texture::name.

◆ preprocess

Preprocess G3D::Texture::Specification::preprocess

◆ visualization

Visualization G3D::Texture::Specification::visualization

documentation generated on Wed Nov 24 2021 08:02:01 using doxygen 1.8.15