12345678910111213141516171819202122 |
- #ifndef TEXTUREDATA_H
- #define TEXTUREDATA_H
- #include <GL/glew.h>
- struct TextureFormat final {
- const GLint internalformat;
- const GLenum format;
- const GLenum type;
- const bool depth;
- static TextureFormat color8(int channels);
- static TextureFormat float16(int channels);
- static TextureFormat float32(int channels);
- static TextureFormat depth16();
- static TextureFormat depth32();
- private:
- TextureFormat(GLint internalformat, GLenum format, GLenum type, bool depth = false);
- };
- #endif
|