RavEngine
Loading...
Searching...
No Matches
tinygltf::Parameter Struct Reference

Public Member Functions

int TextureIndex () const
 
int TextureTexCoord () const
 
double Factor () const
 
ColorValue ColorFactor () const
 
bool operator== (const Parameter &) const
 

Public Attributes

bool bool_value = false
 
bool has_number_value = false
 
std::string string_value
 
std::vector< double > number_array
 
std::map< std::string, double > json_double_value
 
double number_value = 0.0
 

Member Function Documentation

◆ ColorFactor()

ColorValue tinygltf::Parameter::ColorFactor ( ) const
inline

Return the color of a material Returned value is only valid if the parameter represent a texture from a material

◆ Factor()

double tinygltf::Parameter::Factor ( ) const
inline

Material factor, like the roughness or metalness of a material Returned value is only valid if the parameter represent a texture from a material

◆ TextureIndex()

int tinygltf::Parameter::TextureIndex ( ) const
inline

Return the index of a texture if this Parameter is a texture map. Returned value is only valid if the parameter represent a texture from a material

◆ TextureTexCoord()

int tinygltf::Parameter::TextureTexCoord ( ) const
inline

Return the index of a texture coordinate set if this Parameter is a texture map. Returned value is only valid if the parameter represent a texture from a material


The documentation for this struct was generated from the following file: