Exemplo n.º 1
0
//read pixel
sRGB8 cTexture::Pixel(double x, double y)
{
	sRGB8 black = sRGB8(0, 0, 0);
	if (x >= 0 && x < width && y >= 0 && y < height - 1.0)
	{
		return Interpolation(x, y);
	}
	else
	{
		return black;
	}
}
Exemplo n.º 2
0
	inline sRGB8 Black8(void) { return sRGB8(0, 0, 0); }