Tachyon (current)  Current Main Branch
Macros | Functions
intersect.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tachyon.h"
#include "intersect.h"
#include "macros.h"

Go to the source code of this file.

Macros

#define TACHYON_INTERNAL   1
 

Functions

unsigned int new_objectid (scenedef *scene)
 
unsigned int max_objectid (scenedef *scene)
 
void free_objects (object *start)
 
void intersect_objects (ray *ry)
 
void add_regular_intersection (flt t, const object *obj, ray *ry)
 
void add_clipped_intersection (flt t, const object *obj, ray *ry)
 
int closest_intersection (flt *t, object const **obj, ray *ry)
 
void add_shadow_intersection (flt t, const object *obj, ray *ry)
 
void add_clipped_shadow_intersection (flt t, const object *obj, ray *ry)
 
int shadow_intersection (ray *ry)
 

Macro Definition Documentation

◆ TACHYON_INTERNAL

#define TACHYON_INTERNAL   1

Definition at line 16 of file intersect.c.

Function Documentation

◆ add_clipped_intersection()

void add_clipped_intersection ( flt  t,
const object *  obj,
ray *  ry 
)

Definition at line 90 of file intersect.c.

References RAYPNT.

Referenced by camray_init().

◆ add_clipped_shadow_intersection()

void add_clipped_shadow_intersection ( flt  t,
const object *  obj,
ray *  ry 
)

Definition at line 155 of file intersect.c.

References RAYPNT.

Referenced by full_shader(), and shade_ambient_occlusion().

◆ add_regular_intersection()

void add_regular_intersection ( flt  t,
const object *  obj,
ray *  ry 
)

Definition at line 77 of file intersect.c.

Referenced by camray_init().

◆ add_shadow_intersection()

void add_shadow_intersection ( flt  t,
const object *  obj,
ray *  ry 
)

Definition at line 131 of file intersect.c.

Referenced by full_shader(), and shade_ambient_occlusion().

◆ closest_intersection()

int closest_intersection ( flt t,
object const **  obj,
ray *  ry 
)

Definition at line 119 of file intersect.c.

Referenced by full_shader(), low_shader(), lowest_shader(), and medium_shader().

◆ free_objects()

void free_objects ( object *  start)

Definition at line 34 of file intersect.c.

Referenced by grid_free(), and rt_deletescene().

◆ intersect_objects()

void intersect_objects ( ray *  ry)

◆ max_objectid()

unsigned int max_objectid ( scenedef *  scene)

Definition at line 30 of file intersect.c.

◆ new_objectid()

unsigned int new_objectid ( scenedef *  scene)

Definition at line 26 of file intersect.c.

Referenced by add_bounded_object(), add_unbounded_object(), and newgrid().

◆ shadow_intersection()

int shadow_intersection ( ray *  ry)

Definition at line 195 of file intersect.c.

Referenced by full_shader(), and shade_ambient_occlusion().