From 4f04a8e7c99331c427d4bbc863dc0addc61a685f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 22 Oct 2020 13:07:40 +0200 Subject: [PATCH] include/Spectre/Graphics/PixelFormat.h: Define 32BRG and 32BRGA formats. --- include/Spectre/Graphics/PixelFormat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/Spectre/Graphics/PixelFormat.h b/include/Spectre/Graphics/PixelFormat.h index c46c0f9..8eda43d 100644 --- a/include/Spectre/Graphics/PixelFormat.h +++ b/include/Spectre/Graphics/PixelFormat.h @@ -8,7 +8,9 @@ enum PixelFormat PF_Unknown = 0, PF_RGB = 1, PF_RGBA = 2, - PF_Alpha = 3, // 1 byte alpha channel. + PF_32BGR = 3, // 32 bits per pixel, 8 bits are used for blue, green, red. Last 8 bits are unused. + PF_32BGRA = 4, // 32 bits per pixel, 8 bits are used for blue, green, red, alpha. + PF_Alpha = 5, // 8 bit alpha channel. }; } // namespace