include/GizegoEngine.h
//Returns the color of a pixel in the image
Returns the color of a pixel in the image
Returns the color of a pixel in the image
inline Color GetPixel(vec2 pos)
		{
			Color c;
			for (unsigned char f = 0; f < 4; f++)
			{
				((unsigned char*)&c)[f] = *((m_data + ((pos.x + pos.y * m_width) * 4)) + f);
			}
			return c;
		}
inline Color GetPixel ( vec2 pos ) { Color c ; for ( unsigned char f = 0 ; f < 4 ; f ++ ) { ( ( unsigned char * ) & c ) [ f ] = * ( ( m_data + ( ( pos . x + pos . y * m_width ) * 4 ) ) + f ) ; } return c ; }
Returns the color of a pixel in the image
Returns the color of a pixel in the image