2000-02-14 Michael Natterer <mitch@gimp.org> * plug-ins/libgck/gck/Makefile.am * plug-ins/libgck/gck/gckcommon.h * plug-ins/libgck/gck/gcklistbox.[ch] * plug-ins/libgck/gck/gckmath.[ch] * plug-ins/libgck/gck/gckvector.[ch]: removed. * plug-ins/libgck/gck/gck.h * plug-ins/libgck/gck/gcktypes.h: modified accordingly. * libgimp/Makefile.am * libgimp/gimpvector.[ch]: new files. Modified the vector functions from GCK. Changed the licence to LGPL, if there are any objections, please let me know. * libgimp/gimp.h: #include "gimpvector.h" * libgimp/gimpmath.h: added deg <-> rad conversion macros. * libgimp/gimpmatrix.[ch]: added a 4x4 vector to rotation angle function from GCK, s/GimpMatrix,gimp_matrix/GimpMatrix3,gimp_matrix3/ * plug-ins/Lighting/* * plug-ins/MapObject/*: s/GckVector,gck_vector/GimpVector,gimp_vector/ * app/pathsP.h * app/paths_dialog.c * app/perspective_tool.[ch] * app/rotate_tool.[ch] * app/scale_tool.[ch] * app/shear_tool.[ch] * app/tools_cmds.c * app/transform_core.[ch] * tools/pdbgen/pdb/tools.pdb: s/GimpMatrix,gimp_matrix/GimpMatrix3,gimp_matrix3/
28 lines
941 B
C
28 lines
941 B
C
#ifndef MAPOBJECTSHADEH
|
|
#define MAPOBJECTSHADEH
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <math.h>
|
|
#include <gdk/gdk.h>
|
|
#include <gck/gck.h>
|
|
|
|
#include "mapobject_main.h"
|
|
#include "mapobject_image.h"
|
|
|
|
typedef GckRGB (*get_ray_color_func)(GimpVector3 *pos);
|
|
|
|
extern get_ray_color_func get_ray_color;
|
|
extern GckRGB get_ray_color_plane (GimpVector3 *pos);
|
|
extern GckRGB get_ray_color_sphere (GimpVector3 *pos);
|
|
extern GckRGB get_ray_color_box (GimpVector3 *pos);
|
|
extern GckRGB get_ray_color_cylinder (GimpVector3 *pos);
|
|
extern void compute_bounding_box (void);
|
|
|
|
extern void vecmulmat (GimpVector3 *u,GimpVector3 *v,gfloat m[16]);
|
|
extern void rotatemat (gfloat angle,GimpVector3 *v,gfloat m[16]);
|
|
extern void transpose_mat (gfloat m[16]);
|
|
extern void matmul (gfloat a[16],gfloat b[16],gfloat c[16]);
|
|
extern void ident_mat (gfloat m[16]);
|
|
|
|
#endif
|