mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 17:30:51 +00:00
- moved colormap constants to backend.
This commit is contained in:
parent
5b85105762
commit
9104fba3ec
3 changed files with 10 additions and 18 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "texturemanager.h"
|
||||
#include "templates.h"
|
||||
#include "stats.h"
|
||||
#include "colormaps.h"
|
||||
|
||||
Postprocess hw_postprocess;
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue