X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFormat.hpp;h=194cc1c8c1c3241cee1c52f64e94b0d601823f72;hb=831183e2cbab7ebf42bf4cace86f7bf9db482ed1;hp=26ebfe010ff8d08dc75a23a4e5dddf8608a1d3ca;hpb=282d731ea8f10342efa82012028de7043b3dd639;p=blank.git diff --git a/src/graphics/Format.hpp b/src/graphics/Format.hpp index 26ebfe0..194cc1c 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() noexcept; + explicit Format(const SDL_PixelFormat &) noexcept; + + bool Compatible(const Format &other) const noexcept; };