| 11 | { |
| 12 | static Graphics::Texture NullTexture; |
| 13 | void MakeNullTexture() |
| 14 | { |
| 15 | sf::Image nullImage; |
| 16 | nullImage.create(100, 100, sf::Color::Transparent); |
| 17 | for (unsigned int i = 0; i < nullImage.getSize().x; i++) |
| 18 | { |
| 19 | for (unsigned int j = 0; j < nullImage.getSize().y; j++) |
| 20 | { |
| 21 | if (i == 0 || j == 0 || i == nullImage.getSize().x - 1 |
| 22 | || j == nullImage.getSize().y - 1 || i == j |
| 23 | || i == ((nullImage.getSize().x - 1) - j)) |
| 24 | nullImage.setPixel(i, j, sf::Color::Red); |
| 25 | } |
| 26 | } |
| 27 | NullTexture.loadFromImage(nullImage); |
| 28 | } |
| 29 | |
| 30 | sf::Vertex toSfVertex(const Transform::UnitVector& uv) |
| 31 | { |
no test coverage detected