- 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 "texturemanager.h"
#include "templates.h" #include "templates.h"
#include "stats.h" #include "stats.h"
#include "colormaps.h"
Postprocess hw_postprocess; Postprocess hw_postprocess;

View File

@ -28,7 +28,6 @@
#include "v_text.h" #include "v_text.h"
#include "i_video.h" #include "i_video.h"
#include "v_draw.h" #include "v_draw.h"
#include "colormaps.h"
#include "hw_clock.h" #include "hw_clock.h"
#include "hw_vrmodes.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 InitSpecialColormaps(PalEntry* pe);
void UpdateSpecialColormap(PalEntry* BaseColors, unsigned int index, float r1, float g1, float b1, float r2, float g2, float b2); 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); 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; 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 #endif