mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- refactoring of the lookup tables.
This commit is contained in:
parent
daf77e55f7
commit
f929419a0a
23 changed files with 406 additions and 538 deletions
|
@ -50,7 +50,6 @@ enum
|
|||
MAXARTFILES_TOTAL = 220
|
||||
};
|
||||
|
||||
extern char* lookuptables[];
|
||||
|
||||
BuildTiles TileFiles;
|
||||
|
||||
|
@ -556,10 +555,10 @@ void tileCopy(int tile, int source, int pal, int xoffset, int yoffset, int flags
|
|||
|
||||
if (pal != -1)
|
||||
{
|
||||
auto remap = lookuptables[pal];
|
||||
auto remap = (const uint8_t*)LookupTables[pal].GetChars();
|
||||
for (auto& pixel : buffer)
|
||||
{
|
||||
pixel = lookuptables[pal][pixel];
|
||||
pixel = remap[pixel];
|
||||
}
|
||||
}
|
||||
tex = new FLooseTile(buffer, tex->GetWidth(), tex->GetHeight());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue