]> git.localhorst.tv Git - blank.git/blob - src/graphics/Format.hpp
give unique IDs to entities
[blank.git] / src / graphics / 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();
19         explicit Format(const SDL_PixelFormat &);
20
21         bool Compatible(const Format &other) const noexcept;
22
23 };
24
25 }
26
27 #endif