]> git.mxchange.org Git - flightgear.git/blob - Astro/sun.hxx
C++ - ifing the code a bit.
[flightgear.git] / Astro / sun.hxx
1 /**************************************************************************
2  * sun.hxx
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_HXX
27 #define _SUN_HXX
28
29
30 #ifndef __cplusplus                                                          
31 # error This library requires C++
32 #endif                                   
33
34
35 extern fgSUNPOS solarPosition;
36
37
38 void fgCalcSunPos (struct OrbElements sunParams);
39 extern struct OrbElements pltOrbElements[9];
40
41
42 /* Initialize the Sun */
43 void fgSunInit( void );
44
45
46 /* Draw the Sun */
47 void fgSunRender( void );
48
49
50 #endif /* _SUN_HXX */
51
52
53 /* $Log$
54 /* Revision 1.1  1998/04/22 13:21:37  curt
55 /* C++ - ifing the code a bit.
56 /*
57  * Revision 1.6  1998/04/21 17:02:33  curt
58  * Prepairing for C++ integration.
59  *
60  * Revision 1.5  1998/03/09 22:47:26  curt
61  * Incorporated Durk's updates.
62  *
63  * Revision 1.4  1998/02/23 19:07:57  curt
64  * Incorporated Durk's Astro/ tweaks.  Includes unifying the sun position
65  * calculation code between sun display, and other FG sections that use this
66  * for things like lighting.
67  *
68  * Revision 1.3  1998/01/22 02:59:29  curt
69  * Changed #ifdef FILE_H to #ifdef _FILE_H
70  *
71  * Revision 1.2  1998/01/19 18:40:19  curt
72  * Tons of little changes to clean up the code and to remove fatal errors
73  * when building with the c++ compiler.
74  *
75  * Revision 1.1  1998/01/07 03:16:21  curt
76  * Moved from .../Src/Scenery/ to .../Src/Astro/
77  *
78  * Revision 1.3  1997/12/11 04:43:56  curt
79  * Fixed sun vector and lighting problems.  I thing the moon is now lit
80  * correctly.
81  *
82  * Revision 1.2  1997/11/25 19:25:39  curt
83  * Changes to integrate Durk's moon/sun code updates + clean up.
84  *
85  * Revision 1.1  1997/10/25 03:16:12  curt
86  * Initial revision of code contributed by Durk Talsma.
87  *
88  */