380 {
381 for (int row = 0; row < BOARD_SIZE; ++row) {
382 for (int col = 0; col < BOARD_SIZE; ++col) {
383 mxvk::VK_Sprite *cell = nullptr;
384 if (board[row][col] == -1) {
385 cell = &visitedCell;
386 } else if ((row + col) % 2 == 0) {
387 cell = &whiteCell;
388 } else {
389 cell = &redCell;
390 }
391
393 static_cast<int>(std::lround((START_X + col * CELL_SIZE) * scaleX)),
394 static_cast<int>(std::lround((START_Y + row * CELL_SIZE) * scaleY)),
395 static_cast<int>(std::lround(CELL_DRAW_SIZE * scaleX)),
396 static_cast<int>(std::lround(CELL_DRAW_SIZE * scaleY)));
397 }
398 }
399 }
void drawSpriteRect(int x, int y, int w, int h)
Queue a draw into an explicit destination rectangle.