fallout2-ce/src/light.h

26 lines
766 B
C++

#ifndef LIGHT_H
#define LIGHT_H
namespace fallout {
#define LIGHT_INTENSITY_MIN (65536 / 4)
#define LIGHT_INTENSITY_MAX 65536
typedef void AdjustLightIntensityProc(int elevation, int tile, int intensity);
int lightInit();
void lightReset();
void lightExit();
int lightGetAmbientIntensity();
void lightSetAmbientIntensity(int intensity, bool shouldUpdateScreen);
int lightGetTileIntensity(int elevation, int tile);
int lightGetTrueTileIntensity(int elevation, int tile);
void lightSetTileIntensity(int elevation, int tile, int intensity);
void lightIncreaseTileIntensity(int elevation, int tile, int intensity);
void lightDecreaseTileIntensity(int elevation, int tile, int intensity);
void lightResetTileIntensity();
} // namespace fallout
#endif /* LIGHT_H */