0 Members and 1 Guest are viewing this topic.
void Image::setPixel(unsigned int x, unsigned int y, const Color& color){ Uint8* pixel = &m_pixels[(x + y * m_size.x) * 4]; *pixel++ = color.r; *pixel++ = color.g; *pixel++ = color.b; *pixel++ = color.a;}