]> git.localhorst.tv Git - blank.git/blob - Format.hpp
194cc1c8c1c3241cee1c52f64e94b0d601823f72
[blank.git] / Format.hpp
1 #ifndef BLANK_GRAPHICS_FORMAT_HPP_
2 #define BLANK_GRAPHICS_FORMAT_HPP_
3
4 #include <SDL.h>
5 #include <GL/glew.h>
6
7
8 namespace blank {
9
10 struct Format {
11
12         GLenum format;
13         GLenum type;
14         GLenum internal;
15
16         SDL_PixelFormat sdl_format;
17
18         Format() noexcept;
19         explicit Format(const SDL_PixelFormat &) noexcept;
20
21         bool Compatible(const Format &other) const noexcept;
22
23 };
24
25 }
26
27 #endif