mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +00:00
Refactoring. Add line drawing.
This commit is contained in:
@@ -6,6 +6,19 @@ namespace PortabilityLayer
|
||||
{
|
||||
struct RGBAColor
|
||||
{
|
||||
uint8_t r, g, b, a;
|
||||
};
|
||||
uint8_t r, g, b, a;
|
||||
|
||||
static RGBAColor Create(uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
||||
};
|
||||
|
||||
inline RGBAColor RGBAColor::Create(uint8_t r, uint8_t g, uint8_t b, uint8_t a)
|
||||
{
|
||||
RGBAColor color;
|
||||
color.r = r;
|
||||
color.g = g;
|
||||
color.b = b;
|
||||
color.a = a;
|
||||
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user