- moved EColorManipulation into the backend.

This commit is contained in:
Christoph Oelckers 2021-03-13 12:21:07 +01:00
parent a0cffca3bb
commit ae09ca7a48
4 changed files with 10 additions and 11 deletions

View file

@ -28,7 +28,6 @@
#include "texturemanager.h"
#include "templates.h"
#include "stats.h"
#include "colormaps.h"
Postprocess hw_postprocess;

View file

@ -28,7 +28,6 @@
#include "v_text.h"
#include "i_video.h"
#include "v_draw.h"
#include "colormaps.h"
#include "hw_clock.h"
#include "hw_vrmodes.h"

View file

@ -63,3 +63,13 @@ int AddSpecialColormap(PalEntry *pe, float r1, float g1, float b1, float r2, flo
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.
CM_INVALID = -1,
CM_DEFAULT = 0, // untranslated
CM_FIRSTSPECIALCOLORMAP, // first special fixed colormap
};
#define CM_MAXCOLORMAP int(CM_FIRSTSPECIALCOLORMAP + SpecialColormaps.Size())

View file

@ -43,13 +43,4 @@ inline uint32_t MakeSpecialColormap(int index)
return index | SPECIALCOLORMAP_MASK;
}
enum EColorManipulation
{
CM_DEFAULT = 0, // untranslated
CM_FIRSTSPECIALCOLORMAP, // first special fixed colormap
};
#define CM_MAXCOLORMAP int(CM_FIRSTSPECIALCOLORMAP + SpecialColormaps.Size())
#endif