OctaCore/src/engine/dynlight.hh

23 lines
615 B
C++
Raw Permalink Normal View History

2020-06-10 01:52:46 +02:00
#ifndef ENGINE_DYNLIGHT_HH
#define ENGINE_DYNLIGHT_HH
#include <shared/geom.hh>
struct physent;
enum
{
DL_SHRINK = 1<<8,
DL_EXPAND = 1<<9,
DL_FLASH = 1<<10
};
2020-09-11 02:54:14 +02:00
void adddynlight(const vec &o, float radius, const vec &color, int fade = 0, int peak = 0, int flags = 0, float initradius = 0, const vec &initcolor = vec(0, 0, 0), physent *owner = nullptr, const vec &dir = vec(0, 0, 0), int spot = 0);
2020-07-30 03:15:44 +02:00
void removetrackeddynlights(physent *owner = nullptr);
2020-06-10 01:52:46 +02:00
void updatedynlights();
int finddynlights();
bool getdynlight(int n, vec &o, float &radius, vec &color, vec &dir, int &spot, int &flags);
#endif