1 /* 2 * light.h 3 * $Id: light.h,v 1.5 2007-03-14 21:04:40 sezero Exp $ 4 * 5 * Copyright (C) 1996-1997 Id Software, Inc. 6 * Copyright (C) 1997-1998 Raven Software Corp. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or (at 11 * your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, but 14 * WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 * See the GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License along 20 * with this program; if not, write to the Free Software Foundation, Inc., 21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 22 */ 23 24 #ifndef __H2UTILS_LIGHT_H 25 #define __H2UTILS_LIGHT_H 26 27 // structure of the light lump 28 29 #define ON_EPSILON 0.1 30 31 #define MAXLIGHTS 1024 32 33 extern float scaledist; 34 extern float scalecos; 35 extern float rangescale; 36 37 //extern int c_culldistplane, c_proper; 38 extern byte *filebase; 39 extern vec3_t bsp_origin; 40 extern float minlights[MAX_MAP_FACES]; 41 42 extern qboolean extrasamples; 43 44 //void TransformSample (vec3_t in, vec3_t out); 45 //void RotateSample (vec3_t in, vec3_t out); 46 //void LoadNodes (char *file); 47 48 byte *GetFileSpace (int size); 49 50 qboolean TestLine (const vec3_t start, const vec3_t stop); 51 void LightFace (int surfnum); 52 void LightLeaf (dleaf_t *leaf); 53 void MakeTnodes (dmodel_t *bm); 54 55 #endif /* __H2UTILS_LIGHT_H */ 56 57