| 23 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 1); |
| 24 | } |
| 25 | void BasicTexture::loadFromFile(const std::string &file) |
| 26 | { |
| 27 | sf::Image i; |
| 28 | if (!i.loadFromFile("Res/Textures/" + file + ".png")) { |
| 29 | throw std::runtime_error("Unable to load BasicTexture: " + file); |
| 30 | } |
| 31 | |
| 32 | loadFromImage(i); |
| 33 | } |
| 34 | |
| 35 | BasicTexture::~BasicTexture() |
| 36 | { |
no outgoing calls
no test coverage detected