TextureFormat.h 523 B

12345678910111213141516171819202122
  1. #ifndef TEXTUREDATA_H
  2. #define TEXTUREDATA_H
  3. #include <GL/glew.h>
  4. struct TextureFormat final {
  5. const GLint internalformat;
  6. const GLenum format;
  7. const GLenum type;
  8. const 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. private:
  15. TextureFormat(GLint internalformat, GLenum format, GLenum type, bool depth = false);
  16. };
  17. #endif