mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-01-05 01:51:02 +07:00
make_vecX from color and color32
This commit is contained in:
@@ -139,6 +139,14 @@ namespace e2d
|
||||
|
||||
namespace e2d
|
||||
{
|
||||
vec3<f32> make_vec3(const color& c) noexcept {
|
||||
return make_vec3(c.r, c.g, c.b);
|
||||
}
|
||||
|
||||
vec4<f32> make_vec4(const color& c) noexcept {
|
||||
return make_vec4(c.r, c.g, c.b, c.a);
|
||||
}
|
||||
|
||||
//
|
||||
// color (<,==,!=) color
|
||||
//
|
||||
|
||||
@@ -139,6 +139,14 @@ namespace e2d
|
||||
|
||||
namespace e2d
|
||||
{
|
||||
vec3<u8> make_vec3(const color32& c) noexcept {
|
||||
return make_vec3(c.r, c.g, c.b);
|
||||
}
|
||||
|
||||
vec4<u8> make_vec4(const color32& c) noexcept {
|
||||
return make_vec4(c.r, c.g, c.b, c.a);
|
||||
}
|
||||
|
||||
//
|
||||
// color32 (<,==,!=) color32
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user