--- ray/src/common/rglsrc.c 1998/07/15 17:52:34 3.2 +++ ray/src/common/rglsrc.c 2003/07/17 09:21:29 3.5 @@ -1,13 +1,12 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - #ifndef lint -static char SCCSid[] = "$SunId$ SGI"; +static const char RCSid[] = "$Id: rglsrc.c,v 3.5 2003/07/17 09:21:29 schorsch Exp $"; #endif - /* * Routines for handling OpenGL light sources */ +#include "copyright.h" + #include "radogl.h" double expval = 0.; /* global exposure value */ @@ -37,9 +36,10 @@ static struct { static int nlights; /* number of defined lights */ -static int l_flatsrc(), l_spheresrc(), l_source(); +static void l_flatsrc(int), l_sphsrc(int), l_source(int); +void lightinit() /* initialize lighting */ { GLfloat ambv[4]; @@ -61,6 +61,7 @@ lightinit() /* initialize lighting */ } +void lightclean() /* clean up light source commands */ { if ((dolights += nlights) <= 0) @@ -69,6 +70,7 @@ lightclean() /* clean up light source commands */ } +void lightdefs() /* define light source list */ { register int i; @@ -98,6 +100,7 @@ lightdefs() /* define light source list */ } +int o_source(o) /* record a distant source */ register OBJREC *o; { @@ -158,7 +161,7 @@ double area; } -static +static void l_source(n) /* convert a distant source */ register int n; { @@ -182,7 +185,7 @@ register int n; } -static +static void l_flatsrc(n) /* convert a flat source */ register int n; { @@ -217,7 +220,7 @@ register int n; } -static +static void l_sphsrc(n) /* convert a spherical source */ register int n; {