/include/texture.hpp |
---|
19,4 → 19,6 |
int halfHeight; |
}; |
void drawTexture(Texture *texture, int x, int y); |
#endif // TEXTURE_HPP |
/src/texture.cpp |
---|
102,3 → 102,11 |
glEnd(); |
} |
} |
void drawTexture(Texture *texture, int x, int y) |
{ |
if (texture) |
{ |
texture->draw(x, y); |
} |
} |