--- ray/src/common/rglsrc.c 1998/07/15 17:52:34 3.2 +++ ray/src/common/rglsrc.c 2003/11/14 17:22:06 3.6 @@ -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.6 2003/11/14 17:22:06 schorsch Exp $"; #endif - /* * Routines for handling OpenGL light sources */ +#include "copyright.h" + #include "radogl.h" double expval = 0.; /* global exposure value */ @@ -37,13 +36,13 @@ 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]; - register int i; if (!dolights) return; @@ -61,6 +60,7 @@ lightinit() /* initialize lighting */ } +void lightclean() /* clean up light source commands */ { if ((dolights += nlights) <= 0) @@ -69,10 +69,9 @@ lightclean() /* clean up light source commands */ } +void lightdefs() /* define light source list */ { - register int i; - if (!nlights) return; glNewList(lightlist, GL_COMPILE); @@ -98,6 +97,7 @@ lightdefs() /* define light source list */ } +int o_source(o) /* record a distant source */ register OBJREC *o; { @@ -158,7 +158,7 @@ double area; } -static +static void l_source(n) /* convert a distant source */ register int n; { @@ -182,7 +182,7 @@ register int n; } -static +static void l_flatsrc(n) /* convert a flat source */ register int n; { @@ -217,7 +217,7 @@ register int n; } -static +static void l_sphsrc(n) /* convert a spherical source */ register int n; {