FileTexture.h 262 B

1234567891011121314151617
  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. void setLinearFilter();
  10. };
  11. #endif