示例#1
0
card::card(card const &reference) {
    //card *newCard = new card();
    setColor(reference.ccolor);
    setNumber(reference.cnumber);
    setShading(reference.cshading);
    setShape(reference.cshape);
};
示例#2
0
Globals::Globals(std::string dmode, std::string shading, float* background, std::string face, std::string order, bool dsided, bool local, bool enabled, float* ambient) {
	this->dmode = setDmode(dmode);
	this->shading = setShading(shading);
	this->face = setFace(face);
	this->order = setOrder(order);
	this->dsided = dsided;
	this->local = local;
	this->enabled = enabled;

	for (int i=0 ; i<4 ; i++) {
		this->background[i] = background[i];
		this->ambient[i] = ambient[i];
	}
}
示例#3
0
文件: material.cpp 项目: shamcode/gui
void Material::setRefraction(float refraction)
{
    this->refraction = refraction;
    setShading(Material::CoockTorrance);
}
示例#4
0
文件: material.cpp 项目: shamcode/gui
void Material::setRoughness(float roughness)
{
    this->roughness = roughness;
    setShading(Material::CoockTorrance);
}
示例#5
0
文件: material.cpp 项目: shamcode/gui
void Material::setSpecular(const glm::vec4 &specular)
{
    this->specular = specular;
    setShading(Material::Phong);
}
示例#6
0
文件: material.cpp 项目: shamcode/gui
void Material::setDiffuse(const glm::vec4 &diffuse)
{
    this->diffuse = diffuse;
    setShading(Material::Phong);
}
示例#7
0
文件: material.cpp 项目: shamcode/gui
void Material::setAmbient(const glm::vec4 &ambient)
{
    this->ambient = ambient;
    setShading(Material::Phong);
}