-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgz.h
42 lines (31 loc) · 827 Bytes
/
gz.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Gz.h - include file for rendering library
* CSCI 580 USC
*/
/*
* universal constants
*/
#define GZ_SUCCESS 0
#define GZ_FAILURE 1
/*
* display classes
*/
#define GZ_RGBAZ_DISPLAY 1
/*
* renderer classes
*/
#define GZ_Z_BUFFER_RENDER 1
typedef int GzRenderClass;
typedef int GzDisplayClass;
typedef void *GzPointer;
typedef float GzColor[3];
typedef short GzIntensity; /* 0-4095 in lower 12-bits for RGBA */
typedef int GzDepth; /* signed z for clipping */
#define RED 0 /* array indicies for color vector */
#define GREEN 1
#define BLUE 2
#define X 0 /* array indicies for position vector */
#define Y 1
#define Z 2
#define U 0 /* array indicies for texture coords */
#define V 1