quake-hipnotic-sdk/utils/light/light.h
1997-03-11 00:00:00 +00:00

39 lines
788 B
C

#include "cmdlib.h"
#include "mathlib.h"
#include "bspfile.h"
#include "entities.h"
#include "threads.h"
#define on_epsilon 0.1
#define maxlights 1024
void loadnodes (char *file);
qboolean testline (vec3_t start, vec3_t stop);
//jim
void lightface (int surfnum, qboolean nolight, vec3_t faceoffset );
void lightleaf (dleaf_t *leaf);
void maketnodes (dmodel_t *bm);
extern float scaledist;
extern float scalecos;
extern float rangescale;
extern int c_culldistplane, c_proper;
byte *getfilespace (int size);
extern byte *filebase;
extern vec3_t bsp_origin;
extern vec3_t bsp_xvector;
extern vec3_t bsp_yvector;
void transformsample (vec3_t in, vec3_t out);
void rotatesample (vec3_t in, vec3_t out);
extern qboolean extrasamples;
extern float minlights[max_map_faces];