TextureFormat.h 854 B

1234567891011121314151617181920212223242526272829303132333435
  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 color1();
  10. static TextureFormat color2();
  11. static TextureFormat color3();
  12. static TextureFormat color4();
  13. static TextureFormat float16();
  14. static TextureFormat float32();
  15. static TextureFormat float16Vector2();
  16. static TextureFormat float16Vector3();
  17. static TextureFormat float16Vector4();
  18. static TextureFormat float32Vector2();
  19. static TextureFormat float32Vector3();
  20. static TextureFormat float32Vector4();
  21. static TextureFormat depth16();
  22. static TextureFormat depth32();
  23. private:
  24. TextureFormat(GLint internalformat, GLenum format, GLenum type, bool depth = false);
  25. };
  26. #endif