X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFormat.hpp;h=5762aab6c13a374da74b6cc6c86b938545e6ef53;hb=38a4cffc0b6aa58e49d24c06aad7bee14cb6515d;hp=26ebfe010ff8d08dc75a23a4e5dddf8608a1d3ca;hpb=282d731ea8f10342efa82012028de7043b3dd639;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; };