1 /****************************************************************************
4 * This module contains all defines, typedefs, and prototypes for EXPRESS.C.
6 * from Persistence of Vision(tm) Ray Tracer
7 * Copright 1995,1999 Persistence of Vision Team
8 *---------------------------------------------------------------------------
9 * NOTICE: This source code file is provided so that users may experiment
10 * with enhancements to POV-Ray and to port the software to platforms other
11 * than those supported by the POV-Ray Team. There are strict rules under
12 * which you are permitted to use this file. The rules are in the file
13 * named POVLEGAL.DOC which should be distributed with this file.
14 * If POVLEGAL.DOC is not available or for more info please contact the POV-Ray
15 * Team Coordinator by email to team-coord@povray.org or visit us on the web at
16 * http://www.povray.org. The latest version of POV-Ray may be found at this site.
18 * This program is based on the popular DKB raytracer version 2.12.
19 * DKBTrace was originally written by David K. Buck.
20 * DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
22 *****************************************************************************/
30 /*****************************************************************************
31 * Global preprocessor defines
32 ******************************************************************************/
37 /*****************************************************************************
39 ******************************************************************************/
44 /*****************************************************************************
46 ******************************************************************************/
47 extern short Have_Vector
;
51 /*****************************************************************************
53 ******************************************************************************/
55 void Parse_Colour (COLOUR Colour
);
56 BLEND_MAP
*Parse_Blend_Map (int Blend_Type
, int Pat_Type
);
57 BLEND_MAP
*Parse_Colour_Map (void);
58 BLEND_MAP
*Parse_Blend_List (int Count
, BLEND_MAP
*Def_Map
, int Blend_Type
);
59 DBL
Parse_Raw_Number (void);
60 DBL
Parse_Float (void);
61 DBL
Allow_Float (DBL defval
);
62 void Parse_UV_Vect (UV_VECT UV_Vect
);
63 void Parse_Vector (VECTOR Vector
);
64 void Parse_Vector4D (VECTOR Vector
);
65 int Parse_Unknown_Vector (EXPRESS Express
);
66 void Parse_Scale_Vector (VECTOR Vector
);
67 DBL
Parse_Float_Param (void);
68 void Parse_Float_Param2 (DBL
*Val1
, DBL
*Val2
);
69 char *Parse_String (void);
70 char *Parse_Formatted_String (void);
71 void Init_Random_Generators (void);
72 void Destroy_Random_Generators (void);
73 DBL
Parse_Signed_Float(void);