SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::helper::types::Material Class Reference

#include <Material.h>

Public Attributes

std::string name
 
RGBAColor diffuse
 
RGBAColor ambient
 
RGBAColor specular
 
RGBAColor emissive
 
float shininess
 
bool useDiffuse
 
bool useSpecular
 
bool useAmbient
 
bool useEmissive
 
bool useShininess
 
bool useTexture
 
bool useBumpMapping
 
bool activated
 
std::string textureFilename
 
std::string bumpTextureFilename
 

Public Member Functions

void setColor (float r, float g, float b, float a)
 
 Material ()
 
 Material (const Material &mat)
 
Materialoperator= (const Material &other)
 

Friends

SOFA_HELPER_API std::ostream & operator<< (std::ostream &out, const Material &m)
 
SOFA_HELPER_API std::istream & operator>> (std::istream &in, Material &m)
 

Attribute details

bool sofa::helper::types::Material::activated
RGBAColor sofa::helper::types::Material::ambient
std::string sofa::helper::types::Material::bumpTextureFilename
RGBAColor sofa::helper::types::Material::diffuse
RGBAColor sofa::helper::types::Material::emissive
std::string sofa::helper::types::Material::name
float sofa::helper::types::Material::shininess
RGBAColor sofa::helper::types::Material::specular
std::string sofa::helper::types::Material::textureFilename
bool sofa::helper::types::Material::useAmbient
bool sofa::helper::types::Material::useBumpMapping
bool sofa::helper::types::Material::useDiffuse
bool sofa::helper::types::Material::useEmissive
bool sofa::helper::types::Material::useShininess
bool sofa::helper::types::Material::useSpecular
bool sofa::helper::types::Material::useTexture

Constructor details

sofa::helper::types::Material::Material ( )
sofa::helper::types::Material::Material ( const Material mat)

Function details

Material & sofa::helper::types::Material::operator= ( const Material other)
void sofa::helper::types::Material::setColor ( float  r,
float  g,
float  b,
float  a 
)

Related details

SOFA_HELPER_API std::ostream& operator<< ( std::ostream &  out,
const Material m 
)
friend
SOFA_HELPER_API std::istream& operator>> ( std::istream &  in,
Material m 
)
friend