1
0
Fork 0

include/Spectre/Graphics/PixelFormat.h: Some documentation

This commit is contained in:
Henrik Hautakoski 2020-10-22 17:16:27 +02:00
parent 391d617117
commit fadd24fa51

View file

@ -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.