#include "GltfMaterialData.hpp"
Public Member Functions | |
GltfMaterialData (std::string_view materialName, const model::RenderingColor &color, bool isDoubleSided=false) | |
std::string | materialName () const |
void | setMaterialName (const std::string &materialName) |
int | r () const |
void | setR (int r) |
int | g () const |
void | setG (int g) |
int | b () const |
void | setB (int b) |
double | a () const |
void | setA (double a) |
bool | isDoubleSided () const |
void | setIsDoubleSided (bool isDoubleSided) |
Related Functions | |
GLTF_API std::ostream & | operator<< (std::ostream &out, const GltfMaterialData &gltfMaterialData) |
Interface with Model and ModelObjects | |
constexpr | GltfMaterialData (std::string_view materialName, int r, int g, int b, double a, bool isDoubleSided=false) |
static std::vector < GltfMaterialData > | buildMaterials (const model::Model &model) |
Protected | |
tinygltf::Material | toGltf () const |
GltfMaterialData is an Interface class between a RenderingColor
and a tinygltf::Material
|
inline |
Standard constructor.
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 |
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 | ) |
|
protected |
Creates a GLTF material on the basis of raw Material Values, i.e, R, G, B, A & isDoubleSided.
|
related |