3 |
|
* sm.h |
4 |
|
*/ |
5 |
|
|
6 |
< |
#ifndef _SM_H_ |
7 |
< |
#define _SM_H_ |
6 |
> |
#ifndef _RAD_SM_H_ |
7 |
> |
#define _RAD_SM_H_ |
8 |
> |
|
9 |
|
#include "rhd_sample.h" |
10 |
|
#include "sm_qtree.h" |
11 |
|
#include "sm_stree.h" |
12 |
+ |
|
13 |
+ |
#ifdef __cplusplus |
14 |
+ |
extern "C" { |
15 |
+ |
#endif |
16 |
+ |
|
17 |
|
#define NEWSETS |
18 |
|
|
19 |
|
|
107 |
|
int free_tris; /* pointer to free_list */ |
108 |
|
int max_verts; /* Maximum number of vertices in the mesh */ |
109 |
|
TRI *tris; /* Pointer to list of triangle structs */ |
110 |
< |
int4 *flags[T_FLAGS]; /* Bit 0 set if active(in current frustum) */ |
110 |
> |
int32 *flags[T_FLAGS]; /* Bit 0 set if active(in current frustum) */ |
111 |
|
/* Bit 1 set if not rendered since created */ |
112 |
|
/* Bit 2 set if base triangle */ |
113 |
|
}SM; |
271 |
|
* Find the closest sample to the given ray. Return -1 on failure. |
272 |
|
* |
273 |
|
*/ |
268 |
– |
#endif |
274 |
|
|
275 |
< |
|
276 |
< |
|
277 |
< |
|
278 |
< |
|
274 |
< |
|
275 |
< |
|
275 |
> |
#ifdef __cplusplus |
276 |
> |
} |
277 |
> |
#endif |
278 |
> |
#endif /* define _RAD_SM_H_ */ |
279 |
|
|