Tachyon (current)  Current Main Branch
intersect.h
Go to the documentation of this file.
1 /*
2  * intersect.h - This file contains the declarations and defines for the
3  * functions that manage intersection, bounding and CSG..
4  *
5  * (C) Copyright 1994-2022 John E. Stone
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  * $Id: intersect.h,v 1.19 2022/02/18 17:55:28 johns Exp $
9  *
10  */
11 
12 unsigned int new_objectid(scenedef *);
13 void free_objects(object *);
14 void intersect_objects(ray *);
15 
16 void add_clipped_intersection(flt, const object *, ray *);
17 void add_regular_intersection(flt, const object *, ray *);
18 int closest_intersection(flt *, object const **, ray *);
19 
20 void add_shadow_intersection(flt, const object *, ray *);
21 void add_clipped_shadow_intersection(flt, const object *, ray *);
22 int shadow_intersection(ray *);
23 
24 #define reset_intersection(ry) \
25  (ry)->intstruct.num = 0; \
26  (ry)->intstruct.shadowfilter = 1.0;
27 
void add_clipped_shadow_intersection(flt, const object *, ray *)
Definition: intersect.c:155
int closest_intersection(flt *, object const **, ray *)
Definition: intersect.c:119
int shadow_intersection(ray *)
Definition: intersect.c:195
void free_objects(object *)
Definition: intersect.c:34
double flt
generic floating point number, using double
Definition: tachyon.h:47
void add_shadow_intersection(flt, const object *, ray *)
Definition: intersect.c:131
void add_clipped_intersection(flt, const object *, ray *)
Definition: intersect.c:90
void intersect_objects(ray *)
Definition: intersect.c:47
void add_regular_intersection(flt, const object *, ray *)
Definition: intersect.c:77
unsigned int new_objectid(scenedef *)
Definition: intersect.c:26