ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/sm_list.h
Revision: 3.4
Committed: Tue Jan 5 16:52:38 1999 UTC (25 years, 4 months ago) by gwlarson
Content type: text/plain
Branch: MAIN
Changes since 3.3: +3 -2 lines
Log Message:
fixed logic in smTest to handle nearby and coincident points, added base tris to rendering, made list of new triangles to speed up rendering

File Contents

# User Rev Content
1 gwlarson 3.1 /* Copyright (c) 1998 Silicon Graphics, Inc. */
2    
3     /* SCCSid "$SunId$ SGI" */
4    
5     /*
6     * list.h
7     * Linked list data structure and routines
8     */
9    
10     #ifndef TRUE
11     #define TRUE 1
12     #define FALSE 0
13     #endif
14    
15     typedef struct _LIST {
16     int d;
17     struct _LIST *next;
18     }LIST;
19    
20    
21     #define LIST_NEXT(l) ((l)->next)
22     #define LIST_DATA(l) ((l)->d)
23     #define SET_LIST_NEXT(l,d) ((l)->next = (d))
24     #define SET_LIST_DATA(l,id) ((l)->d = (int)(id))
25 gwlarson 3.4
26 gwlarson 3.1 /*
27     LIST *new_list(void);
28     LIST *free_list(LIST *l);
29     LIST *append_list(LIST *a, LIST *b);
30 gwlarson 3.4
31 gwlarson 3.1 int pop_data(LIST **l);
32     LIST *add_data_to_circular_list(LIST *l,LIST **end,int d)
33     int remove_from_list(int d,LIST **list)
34     */
35     LIST *new_list();
36     LIST *free_list();
37     LIST *append_list();
38 gwlarson 3.4 int pop_data();
39 gwlarson 3.1 LIST *push_data();
40     LIST *add_data_to_circular_list();
41     int remove_from_list();
42 gwlarson 3.3 LIST *add_data();
43 gwlarson 3.1
44    
45    
46