summaryrefslogtreecommitdiffstats
path: root/zoom/light.h
blob: 06d67562cee19eee61c8e8399e8e023322ccfe00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef ZOOM_LIGHT_H
#define ZOOM_LIGHT_H

#include <zoom/types.h>

#define LIGHT_UNKNOWN 0
#define LIGHT_POINT 1
#define LIGHT_DIRECTIONAL 2
#define LIGHT_SPOT 3

typedef struct _LIGHT {
	unsigned char type;
	COLOR diffuse;
	VERTEX pos;
} LIGHT;


void SetAmbient(COLOR);
void AddLight(LIGHT);
void ResetLights();
void ApplyLightScale();

#endif