| 1 | schorsch | 1.3 | /* RCSid: $Id: rayopt.h,v 1.2 2003/02/28 20:11:30 greg Exp $ */ | 
| 2 | greg | 1.1 | /*------------------------------------------------------------------------- | 
| 3 |  |  |  | 
| 4 |  |  | Triangle Bounder/Smoother for POV-Ray | 
| 5 |  |  | Copyright (c) 1993 Steve Anger | 
| 6 |  |  |  | 
| 7 |  |  | A number of C routines that can be used to generate POV-Ray ray tracer | 
| 8 |  |  | files from triangle data.  Supports generation of smooth triangles and an | 
| 9 |  |  | optimal set of bounding shapes for much faster traces. This program may be | 
| 10 |  |  | freely modified and distributed. | 
| 11 |  |  |  | 
| 12 |  |  | CompuServe: 70714,3113 | 
| 13 |  |  | YCCMR BBS: (708)358-5611 | 
| 14 |  |  |  | 
| 15 |  |  | --------------------------------------------------------------------------*/ | 
| 16 |  |  |  | 
| 17 | schorsch | 1.3 | #ifndef _MGF_RAYOPT_H | 
| 18 |  |  | #define _MGF_RAYOPT_H | 
| 19 |  |  | #ifdef __cplusplus | 
| 20 |  |  | extern "C" { | 
| 21 |  |  | #endif | 
| 22 |  |  |  | 
| 23 | greg | 1.1 |  | 
| 24 |  |  | #include "vect.h" | 
| 25 |  |  |  | 
| 26 |  |  | void opt_set_format (int format); | 
| 27 |  |  | void opt_set_fname (char *pov_name, char *inc_name); | 
| 28 |  |  | void opt_set_quiet (int quiet); | 
| 29 |  |  | void opt_set_bound (int bound); | 
| 30 |  |  | void opt_set_smooth (float smooth); | 
| 31 |  |  | void opt_set_vert (unsigned vert); | 
| 32 |  |  | void opt_set_dec (int dec); | 
| 33 |  |  |  | 
| 34 |  |  | void opt_set_color (float red, float green, float blue); | 
| 35 |  |  | void opt_set_texture (char *texture_name); | 
| 36 |  |  | void opt_set_transform (Matrix mat); | 
| 37 |  |  | void opt_clear_transform(); | 
| 38 |  |  | int  opt_add_tri (float ax, float ay, float az, | 
| 39 |  |  | float bx, float by, float bz, | 
| 40 |  |  | float cx, float cy, float cz); | 
| 41 |  |  |  | 
| 42 |  |  | void opt_write_pov (char *obj_name); | 
| 43 |  |  | void opt_write_file (char *obj_name); | 
| 44 |  |  | void opt_write_box (char *obj_name); | 
| 45 |  |  | void opt_finish (void); | 
| 46 |  |  |  | 
| 47 |  |  | void opt_get_limits (float *min_x, float *min_y, float *min_z, | 
| 48 |  |  | float *max_x, float *max_y, float *max_z); | 
| 49 |  |  | void opt_get_glimits (float *min_x, float *min_y, float *min_z, | 
| 50 |  |  | float *max_x, float *max_y, float *max_z); | 
| 51 |  |  | unsigned opt_get_vert_cnt (void); | 
| 52 |  |  | unsigned opt_get_tri_cnt (void); | 
| 53 |  |  | float    opt_get_index (void); | 
| 54 |  |  | unsigned opt_get_bounds (void); | 
| 55 |  |  |  | 
| 56 |  |  | void abortmsg (char *msg, int exit_code); | 
| 57 |  |  | void add_ext (char *fname, char *ext, int force); | 
| 58 |  |  | void cleanup_name (char *name); | 
| 59 |  |  |  | 
| 60 | schorsch | 1.3 |  | 
| 61 |  |  | #ifdef __cplusplus | 
| 62 |  |  | } | 
| 63 | greg | 1.1 | #endif | 
| 64 | schorsch | 1.3 | #endif /* _MGF_RAYOPT_H */ | 
| 65 |  |  |  |