mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
25 lines
469 B
C
25 lines
469 B
C
|
#pragma once
|
||
|
|
||
|
#include "gl_hwtexture.h"
|
||
|
|
||
|
struct palette_t;
|
||
|
|
||
|
class PaletteManager
|
||
|
{
|
||
|
IHardwareTexture* palettetextures[256] = {};
|
||
|
IHardwareTexture* lookuptextures[256] = {};
|
||
|
|
||
|
unsigned FindPalswap(const uint8_t* paldata, palette_t& fadecolor);
|
||
|
|
||
|
public:
|
||
|
~PaletteManager();
|
||
|
void DeleteAll();
|
||
|
IHardwareTexture *GetPalette(int index);
|
||
|
IHardwareTexture* GetLookup(int index);
|
||
|
};
|
||
|
|
||
|
|
||
|
IHardwareTexture* setpalettelayer(int layer, int translation);
|
||
|
void ClearPalManager();
|
||
|
|