FileTexture.h 233 B

123456789101112131415
  1. #ifndef FILETEXTURE_H
  2. #define FILETEXTURE_H
  3. #include "rendering/Texture.h"
  4. class FileTexture final {
  5. Texture texture;
  6. public:
  7. FileTexture(const char* path, int maxMipMaps = 0);
  8. void bindTo(int index) const;
  9. };
  10. #endif