- moved the last remaining utilities.

This commit is contained in:
Christoph Oelckers 2020-04-11 13:04:17 +02:00
parent 5a1c4693de
commit 76352dd9b3
10 changed files with 16 additions and 10 deletions

View file

@ -1125,7 +1125,7 @@ set (PCH_SOURCES
common/utility/i_module.cpp
common/utility/m_alloc.cpp
common/utility/utf8.cpp
utility/palette.cpp
common/utility/palette.cpp
utility/palettecontainer.cpp
common/utility/files.cpp
common/utility/files_decompress.cpp
@ -1173,7 +1173,7 @@ add_executable( zdoom WIN32 MACOSX_BUNDLE
${SYSTEM_SOURCES}
${FASTMATH_SOURCES}
${PCH_SOURCES}
utility/x86.cpp
common/utility/x86.cpp
common/thirdparty/strnatcmp.c
common/utility/zstring.cpp
common/utility/findfile.cpp

View file

@ -0,0 +1,12 @@
#pragma once
#include <stdint.h>
#include "palentry.h"
int BestColor(const uint32_t* pal, int r, int g, int b, int first = 1, int num = 255);
int PTM_BestColor(const uint32_t* pal_in, int r, int g, int b, bool reverselookup, float powtable, int first = 1, int num = 255);
void DoBlending(const PalEntry* from, PalEntry* to, int count, int r, int g, int b, int a);
// Colorspace conversion RGB <-> HSV
void RGBtoHSV (float r, float g, float b, float *h, float *s, float *v);
void HSVtoRGB (float *r, float *g, float *b, float h, float s, float v);

View file

@ -3,7 +3,7 @@
#include "doomtype.h"
#include "tarray.h"
#include "palutil.h"
#include "palettecontainer.h"
class FSerializer;

View file

@ -39,6 +39,7 @@
#include "printf.h"
#include "colormatcher.h"
#include "templates.h"
#include "palettecontainer.h"
//----------------------------------------------------------------------------

View file

@ -4,13 +4,6 @@
#include "memarena.h"
#include "palentry.h"
int BestColor(const uint32_t* pal, int r, int g, int b, int first = 1, int num = 255);
int PTM_BestColor(const uint32_t* pal_in, int r, int g, int b, bool reverselookup, float powtable, int first = 1, int num = 255);
void DoBlending(const PalEntry* from, PalEntry* to, int count, int r, int g, int b, int a);
// Colorspace conversion RGB <-> HSV
void RGBtoHSV (float r, float g, float b, float *h, float *s, float *v);
void HSVtoRGB (float *r, float *g, float *b, float h, float s, float v);
struct FRemapTable
{
FRemapTable(int count = 256) { NumEntries = count; }