From fadd24fa5120177e48d77280ad78c498e8b571c9 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 22 Oct 2020 17:16:27 +0200 Subject: [PATCH] include/Spectre/Graphics/PixelFormat.h: Some documentation --- include/Spectre/Graphics/PixelFormat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Spectre/Graphics/PixelFormat.h b/include/Spectre/Graphics/PixelFormat.h index 8eda43d..b2a1ac4 100644 --- a/include/Spectre/Graphics/PixelFormat.h +++ b/include/Spectre/Graphics/PixelFormat.h @@ -6,8 +6,8 @@ namespace sp { enum PixelFormat { PF_Unknown = 0, - PF_RGB = 1, - PF_RGBA = 2, + PF_RGB = 1, // Standard RGB: 24 bits per pixel, 8 bits are used for red, green, blue. + PF_RGBA = 2, // Standard RGBA: 32 bits per pixel, 8 bits are used for red, green, blue, alpha. 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.