TextureFormat.h 535 B

1234567891011121314151617181920212223
  1. #ifndef TEXTUREDATA_H
  2. #define TEXTUREDATA_H
  3. #include <GL/glew.h>
  4. struct TextureFormat final {
  5. GLint internalformat;
  6. GLenum format;
  7. GLenum type;
  8. bool depth;
  9. static TextureFormat color8(int channels);
  10. static TextureFormat float16(int channels);
  11. static TextureFormat float32(int channels);
  12. static TextureFormat depth16();
  13. static TextureFormat depth32();
  14. static TextureFormat unknown();
  15. private:
  16. TextureFormat(GLint internalformat, GLenum format, GLenum type, bool depth = false);
  17. };
  18. #endif