void framebuffer_t::setPixelValue(int w, int h, color_t value)
{
	pixelValueArray[h*stepSize + w*3 + 0] = value.getR();
	pixelValueArray[h*stepSize + w*3 + 1] = value.getG();
	pixelValueArray[h*stepSize + w*3 + 2] = value.getB();
}
Exemple #2
0
bool color_t::operator== (const color_t & c){
	return (this->r_comp == c.getR() && this->g_comp == c.getG() && this->b_comp == c.getB());
}