1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:17:35 +00:00

LibGL+LibSoftGPU: Add support for 8-bit luminance (+ alpha) textures

Used by Half-Life for single colour textures. The alpha variant is
especially used for UI textures.
This commit is contained in:
Luke Wilde 2022-01-15 10:11:27 +00:00 committed by Andreas Kling
parent 6e37487477
commit c6a0365c58
3 changed files with 43 additions and 1 deletions

View file

@ -239,7 +239,9 @@ extern "C" {
#define GL_RGB 0x1907
#define GL_RGBA 0x1908
#define GL_LUMINANCE 0x1909
#define GL_LUMINANCE8 0x8040
#define GL_LUMINANCE_ALPHA 0x190A
#define GL_LUMINANCE8_ALPHA8 0x8045
#define GL_BGR 0x190B
#define GL_BGRA 0x190C
#define GL_BITMAP 0x1A00