2007-01-15 12:09:25 -08:00
|
|
|
/*
|
|
|
|
This file is part of Warzone 2100.
|
|
|
|
Copyright (C) 1999-2004 Eidos Interactive
|
2013-01-16 12:34:57 -08:00
|
|
|
Copyright (C) 2005-2013 Warzone 2100 Project
|
2007-01-15 12:09:25 -08:00
|
|
|
|
|
|
|
Warzone 2100 is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Warzone 2100 is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Warzone 2100; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2008-03-21 14:37:01 -07:00
|
|
|
|
|
|
|
#ifndef __INCLUDED_SRC_LIGHTNING_H__
|
|
|
|
#define __INCLUDED_SRC_LIGHTNING_H__
|
|
|
|
|
2010-12-31 13:37:14 -08:00
|
|
|
#include "lib/ivis_opengl/pietypes.h"
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2006-05-27 09:37:17 -07:00
|
|
|
#define FOG_FLAGS 7
|
|
|
|
#define FOG_BACKGROUND 1
|
|
|
|
#define FOG_DISTANCE 2
|
2013-01-09 03:49:04 -08:00
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2008-01-27 17:29:20 -08:00
|
|
|
extern UDWORD fogStatus;
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2011-02-25 12:30:13 -08:00
|
|
|
enum LIGHT_COLOUR
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
|
|
|
LIGHT_RED,
|
|
|
|
LIGHT_GREEN,
|
|
|
|
LIGHT_BLUE,
|
|
|
|
LIGHT_YELLOW,
|
|
|
|
LIGHT_WHITE
|
2011-02-25 12:30:13 -08:00
|
|
|
};
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2011-02-25 12:30:13 -08:00
|
|
|
struct LIGHT
|
2007-06-28 10:47:08 -07:00
|
|
|
{
|
2007-03-16 09:20:16 -07:00
|
|
|
Vector3i position;
|
2007-06-28 10:47:08 -07:00
|
|
|
UBYTE type;
|
|
|
|
UDWORD range;
|
2007-01-07 15:50:30 -08:00
|
|
|
LIGHT_COLOUR colour;
|
2011-02-25 12:30:13 -08:00
|
|
|
};
|
2007-06-28 10:47:08 -07:00
|
|
|
|
2008-01-27 17:29:20 -08:00
|
|
|
extern void setTheSun(Vector3f newSun);
|
|
|
|
extern Vector3f getTheSun(void);
|
|
|
|
|
2007-06-28 10:47:08 -07:00
|
|
|
extern void processLight(LIGHT *psLight);
|
|
|
|
extern void initLighting(UDWORD x1, UDWORD y1, UDWORD x2, UDWORD y2);
|
|
|
|
extern void lightValueForTile(UDWORD tileX, UDWORD tileY);
|
|
|
|
extern void doBuildingLights( void );
|
2007-03-20 13:46:26 -07:00
|
|
|
extern void UpdateFogDistance(float distance);
|
2007-06-28 10:47:08 -07:00
|
|
|
extern void calcDroidIllumination(DROID *psDroid);
|
|
|
|
|
2008-03-21 14:37:01 -07:00
|
|
|
#endif // __INCLUDED_SRC_LIGHTNING_H__
|