mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
25 lines
381 B
C++
25 lines
381 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace PortabilityLayer
|
|
{
|
|
struct RGBAColor
|
|
{
|
|
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;
|
|
}
|
|
}
|