GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
tinygltf::Parameter Struct Reference

#include <tiny_gltf.h>

Collaboration diagram for tinygltf::Parameter:

Public Member Functions

int TextureIndex () const
int TextureTexCoord () const
double TextureScale () const
double TextureStrength () const
double Factor () const
ColorValue ColorFactor () const
 Parameter ()=default
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

Constructor & Destructor Documentation

◆ Parameter()

tinygltf::Parameter::Parameter ( )
default
Here is the caller graph for this function:

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

◆ operator==()

bool tinygltf::Parameter::operator== ( const Parameter & ) const

◆ 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

◆ TextureScale()

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

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

◆ TextureStrength()

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

Return the strength of a texture if this Parameter is a an occlusion map. Returned value is only valid if the parameter represent an occlusion map 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

Member Data Documentation

◆ bool_value

bool tinygltf::Parameter::bool_value = false

◆ has_number_value

bool tinygltf::Parameter::has_number_value = false

◆ json_double_value

std::map<std::string, double> tinygltf::Parameter::json_double_value

◆ number_array

std::vector<double> tinygltf::Parameter::number_array

◆ number_value

double tinygltf::Parameter::number_value = 0.0

◆ string_value

std::string tinygltf::Parameter::string_value

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