1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-10-06 05:45:21 +02:00

Fix drawing of transparent nodes without --drawalpha (fixes #41)

This commit is contained in:
sfan5
2017-01-05 23:37:21 +01:00
parent 9503f76805
commit d490cf0a31
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ struct Color {
Color() : r(0), g(0), b(0), a(0) {};
Color(u8 r, u8 g, u8 b) : r(r), g(g), b(b), a(255) {};
Color(u8 r, u8 g, u8 b, u8 a) : r(r), g(g), b(b), a(a) {};
inline Color noAlpha() const { return Color(r, g, b); }
u8 r, g, b, a;
};