#include <GltfMaterialData.hpp>
|
(Note that these are not member functions.)
|
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. More...
|
|
GltfMaterialData is an Interface class between a RenderingColor
and a tinygltf::Material
constexpr openstudio::gltf::GltfMaterialData::GltfMaterialData |
( |
std::string_view |
materialName, |
|
|
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
double |
a, |
|
|
bool |
isDoubleSided = false |
|
) |
| |
|
inline |
openstudio::gltf::GltfMaterialData::GltfMaterialData |
( |
std::string_view |
materialName, |
|
|
const model::RenderingColor & |
color, |
|
|
bool |
isDoubleSided = false |
|
) |
| |
double openstudio::gltf::GltfMaterialData::a |
( |
| ) |
const |
int openstudio::gltf::GltfMaterialData::b |
( |
| ) |
const |
static std::vector<GltfMaterialData> openstudio::gltf::GltfMaterialData::buildMaterials |
( |
const model::Model & |
model | ) |
|
|
static |
int openstudio::gltf::GltfMaterialData::g |
( |
| ) |
const |
bool openstudio::gltf::GltfMaterialData::isDoubleSided |
( |
| ) |
const |
std::string openstudio::gltf::GltfMaterialData::materialName |
( |
| ) |
const |
int openstudio::gltf::GltfMaterialData::r |
( |
| ) |
const |
void openstudio::gltf::GltfMaterialData::setA |
( |
double |
a | ) |
|
void openstudio::gltf::GltfMaterialData::setB |
( |
int |
b | ) |
|
void openstudio::gltf::GltfMaterialData::setG |
( |
int |
g | ) |
|
void openstudio::gltf::GltfMaterialData::setIsDoubleSided |
( |
bool |
isDoubleSided | ) |
|
void openstudio::gltf::GltfMaterialData::setMaterialName |
( |
const std::string & |
materialName | ) |
|
void openstudio::gltf::GltfMaterialData::setR |
( |
int |
r | ) |
|
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.
GLTF_API std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const GltfMaterialData & |
gltfMaterialData |
|
) |
| |
|
related |