Tachyon (current)  Current Main Branch
Data Structures | Typedefs | Functions
light.h File Reference
#include "shade.h"

Go to the source code of this file.

Data Structures

struct  light_t
 
struct  point_light_t
 
struct  directional_light_t
 

Typedefs

typedef struct light_t light
 
typedef struct point_light_t point_light
 
typedef struct directional_light_t directional_light
 

Functions

void free_light_special (void *voidlight)
 
directional_lightnewdirectionallight (void *, vector)
 
point_lightnewpointlight (void *, vector, flt)
 
point_lightnewspotlight (void *tex, vector ctr, flt rad, vector dir, flt fallstart, flt fallend)
 
point_lightnewlight (void *, vector, flt)
 
void light_set_attenuation (point_light *li, flt Kc, flt Kl, flt Kq)
 

Typedef Documentation

◆ directional_light

◆ light

typedef struct light_t light

◆ point_light

typedef struct point_light_t point_light

Function Documentation

◆ free_light_special()

void free_light_special ( void *  voidlight)

Definition at line 35 of file light.c.

References directional_light_shade_diffuse(), and light_t::shade_diffuse.

Referenced by rt_deletescene().

◆ light_set_attenuation()

void light_set_attenuation ( point_light li,
flt  Kc,
flt  Kl,
flt  Kq 
)

◆ newdirectionallight()

directional_light* newdirectionallight ( void *  ,
vector   
)

◆ newlight()

point_light* newlight ( void *  ,
vector  ,
flt   
)

◆ newpointlight()

point_light* newpointlight ( void *  ,
vector  ,
flt   
)

◆ newspotlight()

point_light* newspotlight ( void *  tex,
vector  ctr,
flt  rad,
vector  dir,
flt  fallstart,
flt  fallend 
)