map-object-shade.h 1 KB
Newer Older
1 2
#ifndef __MAPOBJECT_SHADE_H__
#define __MAPOBJECT_SHADE_H__
3

4
typedef GimpRGB (* get_ray_color_func) (GimpVector3 *pos);
5 6 7

extern get_ray_color_func get_ray_color;

8 9 10 11
GimpRGB   get_ray_color_plane    (GimpVector3 *pos);
GimpRGB   get_ray_color_sphere   (GimpVector3 *pos);
GimpRGB   get_ray_color_box      (GimpVector3 *pos);
GimpRGB   get_ray_color_cylinder (GimpVector3 *pos);
Michael Natterer's avatar
Michael Natterer committed
12
void     compute_bounding_box   (void);
13

Michael Natterer's avatar
Michael Natterer committed
14
void     vecmulmat              (GimpVector3 *u,
15 16
                                 GimpVector3 *v,
                                 gfloat       m[16]);
Michael Natterer's avatar
Michael Natterer committed
17
void     rotatemat              (gfloat       angle,
18 19
                                 GimpVector3 *v,
                                 gfloat       m[16]);
Michael Natterer's avatar
Michael Natterer committed
20 21
void     transpose_mat          (gfloat       m[16]);
void     matmul                 (gfloat       a[16],
22 23
                                 gfloat       b[16],
                                 gfloat       c[16]);
Michael Natterer's avatar
Michael Natterer committed
24
void     ident_mat              (gfloat       m[16]);
25

26
#endif  /* __MAPOBJECT_SHADE_H__ */