X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFormat.hpp;h=5762aab6c13a374da74b6cc6c86b938545e6ef53;hb=7bb75960dbf9bfdee9ac865384aca81791b3da5c;hp=26ebfe010ff8d08dc75a23a4e5dddf8608a1d3ca;hpb=a34fbcb0581056bd464158acfa30289a3e2c2c2d;p=blank.git diff --git a/src/graphics/Format.hpp b/src/graphics/Format.hpp index 26ebfe0..5762aab 100644 --- a/src/graphics/Format.hpp +++ b/src/graphics/Format.hpp @@ -13,7 +13,12 @@ struct Format { GLenum type; GLenum internal; - void ReadPixelFormat(const SDL_PixelFormat &); + SDL_PixelFormat sdl_format; + + Format(); + explicit Format(const SDL_PixelFormat &); + + bool Compatible(const Format &other) const noexcept; };