]> git.localhorst.tv Git - gworm.git/blobdiff - src/graphics/Color.h
added texture support
[gworm.git] / src / graphics / Color.h
index f976e1a4b36181003bb775f93e3fb59c63b77919..ade711c6002e725609afe7fd1eef7309ace65826 100644 (file)
@@ -8,6 +8,9 @@ namespace gworm {
 
 struct Color {
 
+       // NOTE: this depends on endianness and should be defined accordingly
+       static constexpr Uint32 Format = SDL_PIXELFORMAT_ABGR8888;
+
        constexpr Color()
        : Color(0, 0, 0) { }
        constexpr Color(Uint8 r, Uint8 g, Uint8 b, Uint8 a = 0xFF)