| 21 |
|
#define DO_NCMDS 10 /* number of object display commands */ |
| 22 |
|
|
| 23 |
|
/* commands entered on stdin only */ |
| 24 |
< |
#define DO_INIT {"load","unload","xform","move","unmove","dup",\ |
| 24 |
> |
#define DO_INIT {"load","clear","xform","move","unmove","dup",\ |
| 25 |
|
"show","light","hide","object"} |
| 26 |
|
|
| 27 |
|
/******************************************************************* |
| 50 |
|
|
| 51 |
|
|
| 52 |
|
double |
| 53 |
< |
dobj_trace(rorg, rdir) : check for ray intersection with objects |
| 53 |
> |
dobj_trace(nm, rorg, rdir) : check for ray intersection with objects |
| 54 |
> |
char nm[]; : object name (modified) |
| 55 |
|
FVECT rorg, rdir; : ray origin and direction |
| 56 |
|
|
| 57 |
< |
Check to see if the given ray intersects any of the visible objects, |
| 57 |
> |
Check to see if the given ray intersects the given object, |
| 58 |
|
returning the distance the ray traveled if it did, or FHUGE if it didn't. |
| 59 |
+ |
If nm contains "*", then all visible objects are checked and the name |
| 60 |
+ |
of the intersected object is returned, or "" if none. If nm is NULL, |
| 61 |
+ |
then all visible objects are checked, but the name is not returned. |
| 62 |
|
|
| 63 |
|
|
| 64 |
|
void |