- moved colormap constants to backend.

This commit is contained in:
Christoph Oelckers 2021-03-06 23:06:26 +01:00
parent 5b85105762
commit 9104fba3ec
3 changed files with 10 additions and 18 deletions

View file

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

View file

@ -56,6 +56,16 @@ struct FSpecialColormap
PalEntry GrayscaleToColor[256];
};
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())
extern TArray<FSpecialColormap> SpecialColormaps;
extern uint8_t DesaturateColormap[31][256];

View file

@ -1,17 +0,0 @@
#ifndef __RES_CMAP_H
#define __RES_CMAP_H
enum EColorManipulation
{
CM_PLAIN2D = -2, // regular 2D drawing.
CM_INVALID = -1,
CM_DEFAULT = 0, // untranslated
CM_FIRSTSPECIALCOLORMAP, // first special fixed colormap
CM_FIRSTSPECIALCOLORMAPFORCED = 0x08000000, // first special fixed colormap, application forced (for 2D overlays)
};
#define CM_MAXCOLORMAP int(CM_FIRSTSPECIALCOLORMAP + SpecialColormaps.Size())
#define CM_MAXCOLORMAPFORCED int(CM_FIRSTSPECIALCOLORMAPFORCED + SpecialColormaps.Size())
#endif