raze/source/core/psky.h

26 lines
639 B
C
Raw Normal View History

2022-01-12 22:33:44 +00:00
#pragma once
#include <stdint.h>
#include "textureid.h"
2022-01-12 22:33:44 +00:00
enum
{
MAXPSKYTILES = 16,
};
struct SkyDefinition
{
FTextureID texid;
2022-01-12 22:33:44 +00:00
int baselineofs;
float scale;
int lognumtiles;
int16_t offsets[MAXPSKYTILES];
};
void addSky(SkyDefinition& sky, FTextureID texid);
2022-01-12 22:33:44 +00:00
void SetSkyOverride(float scale, int bits);
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