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