TextureFormat.h 616 B

12345678910111213141516171819202122
  1. #ifndef TEXTUREDATA_H
  2. #define TEXTUREDATA_H
  3. #include "wrapper/GL.h"
  4. struct TextureFormat final {
  5. GL::TextureFormat format;
  6. bool linear;
  7. bool depth;
  8. static TextureFormat color8(int channels, bool linear = false);
  9. static TextureFormat float16(int channels, bool linear = false);
  10. static TextureFormat float32(int channels, bool linear = false);
  11. static TextureFormat depth16(bool linear = false);
  12. static TextureFormat depth32(bool linear = false);
  13. static TextureFormat unknown();
  14. private:
  15. TextureFormat(const GL::TextureFormat& tf, bool linear, bool depth = false);
  16. };
  17. #endif