#include <GltfMaterialData.hpp>
|
(Note that these are not member symbols.)
|
GLTF_API std::ostream & | operator<< (std::ostream &out, const GltfMaterialData &gltfMaterialData) |
|
|
tinygltf::Material | toGltf () const |
| Creates a GLTF material on the basis of raw Material Values, i.e, R, G, B, A & isDoubleSided.
|
|
GltfMaterialData is an Interface class between a RenderingColor
and a tinygltf::Material
◆ GltfMaterialData() [1/2]
openstudio::gltf::GltfMaterialData::GltfMaterialData |
( |
std::string_view | materialName, |
|
|
int | r, |
|
|
int | g, |
|
|
int | b, |
|
|
double | a, |
|
|
bool | isDoubleSided = false ) |
|
inlineconstexpr |
◆ GltfMaterialData() [2/2]
openstudio::gltf::GltfMaterialData::GltfMaterialData |
( |
std::string_view | materialName, |
|
|
const model::RenderingColor & | color, |
|
|
bool | isDoubleSided = false ) |
◆ a()
double openstudio::gltf::GltfMaterialData::a |
( |
| ) |
const |
◆ b()
int openstudio::gltf::GltfMaterialData::b |
( |
| ) |
const |
◆ buildMaterials()
static std::vector< GltfMaterialData > openstudio::gltf::GltfMaterialData::buildMaterials |
( |
const model::Model & | model | ) |
|
|
static |
◆ g()
int openstudio::gltf::GltfMaterialData::g |
( |
| ) |
const |
◆ isDoubleSided()
bool openstudio::gltf::GltfMaterialData::isDoubleSided |
( |
| ) |
const |
◆ materialName()
std::string openstudio::gltf::GltfMaterialData::materialName |
( |
| ) |
const |
◆ r()
int openstudio::gltf::GltfMaterialData::r |
( |
| ) |
const |
◆ setA()
void openstudio::gltf::GltfMaterialData::setA |
( |
double | a | ) |
|
◆ setB()
void openstudio::gltf::GltfMaterialData::setB |
( |
int | b | ) |
|
◆ setG()
void openstudio::gltf::GltfMaterialData::setG |
( |
int | g | ) |
|
◆ setIsDoubleSided()
void openstudio::gltf::GltfMaterialData::setIsDoubleSided |
( |
bool | isDoubleSided | ) |
|
◆ setMaterialName()
void openstudio::gltf::GltfMaterialData::setMaterialName |
( |
const std::string & | materialName | ) |
|
◆ setR()
void openstudio::gltf::GltfMaterialData::setR |
( |
int | r | ) |
|
◆ toGltf()
tinygltf::Material openstudio::gltf::GltfMaterialData::toGltf |
( |
| ) |
const |
|
protected |
Creates a GLTF material on the basis of raw Material Values, i.e, R, G, B, A & isDoubleSided.
◆ operator<<()
GLTF_API std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const GltfMaterialData & | gltfMaterialData ) |
|
related |