diff --git a/libs/gfx/include/psemek/gfx/color.hpp b/libs/gfx/include/psemek/gfx/color.hpp index f289cca7..8a9d8a4f 100644 --- a/libs/gfx/include/psemek/gfx/color.hpp +++ b/libs/gfx/include/psemek/gfx/color.hpp @@ -8,6 +8,9 @@ namespace psemek::gfx { + using color_3f = geom::vector; + using color_4f = geom::vector; + using color_rgb = geom::vector; using color_rgba = geom::vector; @@ -37,7 +40,7 @@ namespace psemek::gfx struct generic_color { - geom::vector c; + color_4f c; auto as_color_rgb() const { @@ -59,12 +62,12 @@ namespace psemek::gfx return as_color_rgba(); } - operator geom::vector() const + operator color_3f() const { - return geom::vector{c[0], c[1], c[2]}; + return color_3f{c[0], c[1], c[2]}; } - operator geom::vector() const + operator color_4f() const { return c; }