diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:23:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:23:22 +0000 |
commit | e42129241681dde7adae7d20697e7b421682fbb4 (patch) | |
tree | af1fe815a5e639e68e59fabd8395ec69458b3e5e /plug-ins/map-object/map-object-shade.h | |
parent | Initial commit. (diff) | |
download | gimp-e42129241681dde7adae7d20697e7b421682fbb4.tar.xz gimp-e42129241681dde7adae7d20697e7b421682fbb4.zip |
Adding upstream version 2.10.22.upstream/2.10.22upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plug-ins/map-object/map-object-shade.h')
-rw-r--r-- | plug-ins/map-object/map-object-shade.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plug-ins/map-object/map-object-shade.h b/plug-ins/map-object/map-object-shade.h new file mode 100644 index 0000000..259e5eb --- /dev/null +++ b/plug-ins/map-object/map-object-shade.h @@ -0,0 +1,26 @@ +#ifndef __MAPOBJECT_SHADE_H__ +#define __MAPOBJECT_SHADE_H__ + +typedef GimpRGB (* get_ray_color_func) (GimpVector3 *pos); + +extern get_ray_color_func get_ray_color; + +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); +void compute_bounding_box (void); + +void vecmulmat (GimpVector3 *u, + GimpVector3 *v, + gfloat m[16]); +void rotatemat (gfloat angle, + GimpVector3 *v, + gfloat m[16]); +void transpose_mat (gfloat m[16]); +void matmul (gfloat a[16], + gfloat b[16], + gfloat c[16]); +void ident_mat (gfloat m[16]); + +#endif /* __MAPOBJECT_SHADE_H__ */ |