mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-11 13:21:49 +00:00
40 lines
739 B
C
40 lines
739 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include "tarray.h"
|
||
|
|
||
|
struct TranslationParm
|
||
|
{
|
||
|
short RangeStart; // First level for this range
|
||
|
short RangeEnd; // Last level for this range
|
||
|
uint8_t Start[3]; // Start color for this range
|
||
|
uint8_t End[3]; // End color for this range
|
||
|
};
|
||
|
|
||
|
struct TempParmInfo
|
||
|
{
|
||
|
unsigned int StartParm[2];
|
||
|
unsigned int ParmLen[2];
|
||
|
int Index;
|
||
|
};
|
||
|
struct TempColorInfo
|
||
|
{
|
||
|
FName Name;
|
||
|
unsigned int ParmInfo;
|
||
|
PalEntry LogColor;
|
||
|
};
|
||
|
|
||
|
struct TranslationMap
|
||
|
{
|
||
|
FName Name;
|
||
|
int Number;
|
||
|
};
|
||
|
|
||
|
extern TArray<TranslationParm> TranslationParms[2];
|
||
|
extern TArray<TranslationMap> TranslationLookup;
|
||
|
extern TArray<PalEntry> TranslationColors;
|
||
|
|
||
|
class FImageSource;
|
||
|
|
||
|
void RecordTextureColors (FImageSource *pic, uint32_t *usedcolors);
|