2022-01-12 22:33:44 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2022-12-09 11:53:16 +00:00
|
|
|
#include "textureid.h"
|
2022-01-12 22:33:44 +00:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAXPSKYTILES = 16,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct SkyDefinition
|
|
|
|
{
|
2022-12-09 11:53:16 +00:00
|
|
|
FTextureID texid;
|
2022-01-12 22:33:44 +00:00
|
|
|
int baselineofs;
|
|
|
|
float scale;
|
|
|
|
int lognumtiles;
|
|
|
|
int16_t offsets[MAXPSKYTILES];
|
|
|
|
};
|
|
|
|
|
2022-12-09 11:53:16 +00:00
|
|
|
void addSky(SkyDefinition& sky, FTextureID texid);
|
2022-01-12 22:33:44 +00:00
|
|
|
void SetSkyOverride(float scale, int bits);
|
2022-12-09 11:53:16 +00:00
|
|
|
SkyDefinition getSky(FTextureID texid);
|
|
|
|
//void defineSky(FTextureID texid, int lognumtiles, const int16_t *tileofs, int yoff = 0, float yscale = 1.f, int yoff2 = 0x7fffffff);
|
2022-11-30 13:56:56 +00:00
|
|
|
void defineSky(const char* tilename, int lognumtiles, const int16_t* tileofs, int yoff = 0, float yscale = 1.f, int yoff2 = 0x7fffffff);
|
2022-01-12 22:33:44 +00:00
|
|
|
|