summaryrefslogtreecommitdiffstats
path: root/plug-ins/lighting/lighting-shade.h
blob: 536df95adf35595781e3e4739e5e97f64439a32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __LIGHTING_SHADE_H__
#define __LIGHTING_SHADE_H__

typedef GimpRGB (* get_ray_func) (GimpVector3 *vector);

GimpRGB get_ray_color                 (GimpVector3 *position);
GimpRGB get_ray_color_no_bilinear     (GimpVector3 *position);
GimpRGB get_ray_color_ref             (GimpVector3 *position);
GimpRGB get_ray_color_no_bilinear_ref (GimpVector3 *position);

void    precompute_init               (gint         w,
				       gint         h);
void    precompute_normals            (gint         x1,
				       gint         x2,
				       gint         y);
void    interpol_row                  (gint         x1,
                                       gint         x2,
                                       gint         y);

#endif  /* __LIGHTING_SHADE_H__ */