while (sys.isQuitRequested() == false) { // draw the sphere for (int y = 0; y , imageHeight; ++y) for (int x = 0; x , imageHeight; ++x) { SMapPos* pos = &mapPos[y * imageHeight + x]; int px = pos-,x; int py = pos-,y; Color col = image[py * imageWidth + px]; gfx.setPixel(x, y, col ...