mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 08:51:08 +00:00
- backend update from GZDoom.
This commit is contained in:
parent
ad8654ed06
commit
ee5950e7ad
11 changed files with 164 additions and 136 deletions
|
@ -56,6 +56,14 @@ struct FSpecialColormap
|
|||
PalEntry GrayscaleToColor[256];
|
||||
};
|
||||
|
||||
extern TArray<FSpecialColormap> SpecialColormaps;
|
||||
extern uint8_t DesaturateColormap[31][256];
|
||||
|
||||
int AddSpecialColormap(PalEntry *pe, float r1, float g1, float b1, float r2, float g2, float b2);
|
||||
void InitSpecialColormaps(PalEntry* pe);
|
||||
void UpdateSpecialColormap(PalEntry* BaseColors, unsigned int index, float r1, float g1, float b1, float r2, float g2, float b2);
|
||||
int ReadPalette(int lumpnum, uint8_t* buffer);
|
||||
|
||||
enum EColorManipulation
|
||||
{
|
||||
CM_PLAIN2D = -2, // regular 2D drawing.
|
||||
|
@ -65,11 +73,3 @@ enum EColorManipulation
|
|||
};
|
||||
|
||||
#define CM_MAXCOLORMAP int(CM_FIRSTSPECIALCOLORMAP + SpecialColormaps.Size())
|
||||
|
||||
extern TArray<FSpecialColormap> SpecialColormaps;
|
||||
extern uint8_t DesaturateColormap[31][256];
|
||||
|
||||
int AddSpecialColormap(PalEntry *pe, float r1, float g1, float b1, float r2, float g2, float b2);
|
||||
void InitSpecialColormaps(PalEntry* pe);
|
||||
void UpdateSpecialColormap(PalEntry* BaseColors, unsigned int index, float r1, float g1, float b1, float r2, float g2, float b2);
|
||||
int ReadPalette(int lumpnum, uint8_t* buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue