]> git.mxchange.org Git - simgear.git/blob - Astro/sun.h
Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
[simgear.git] / Astro / sun.h
1 /**************************************************************************
2  * sun.h
3  *
4  * Written 1997 by Durk Talsma, started October, 1997.  For the flight gear
5  * project.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  *
21  * $Id$
22  * (Log is kept at end of this file)
23  **************************************************************************/
24
25
26 #ifndef _SUN_H
27 #define _SUN_H
28
29
30 extern struct fgSUNPOS solarPosition;
31
32
33 void fgCalcSunPos (struct OrbElements sunParams);
34 extern struct OrbElements pltOrbElements[9];
35
36 /* Initialize the Sun */
37 void fgSunInit( void );
38
39 /* Draw the Sun */
40 void fgSunRender( void );
41
42
43 #endif /* _SUN_H */
44
45
46 /* $Log$
47 /* Revision 1.4  1998/02/23 19:07:57  curt
48 /* Incorporated Durk's Astro/ tweaks.  Includes unifying the sun position
49 /* calculation code between sun display, and other FG sections that use this
50 /* for things like lighting.
51 /*
52  * Revision 1.3  1998/01/22 02:59:29  curt
53  * Changed #ifdef FILE_H to #ifdef _FILE_H
54  *
55  * Revision 1.2  1998/01/19 18:40:19  curt
56  * Tons of little changes to clean up the code and to remove fatal errors
57  * when building with the c++ compiler.
58  *
59  * Revision 1.1  1998/01/07 03:16:21  curt
60  * Moved from .../Src/Scenery/ to .../Src/Astro/
61  *
62  * Revision 1.3  1997/12/11 04:43:56  curt
63  * Fixed sun vector and lighting problems.  I thing the moon is now lit
64  * correctly.
65  *
66  * Revision 1.2  1997/11/25 19:25:39  curt
67  * Changes to integrate Durk's moon/sun code updates + clean up.
68  *
69  * Revision 1.1  1997/10/25 03:16:12  curt
70  * Initial revision of code contributed by Durk Talsma.
71  *
72  */