Oops.
[AROS-Contrib.git] / Games / Doom / r_sky.c
blob597590b236f9e4fa3e0ce12fd06ef4bec4acfb9f
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
15 // for more details.
17 // $Log$
18 // Revision 1.1 2000/02/29 18:21:05 stegerg
19 // Doom port based on ADoomPPC. Read README.AROS!
22 // DESCRIPTION:
23 // Sky rendering. The DOOM sky is a texture map like any
24 // wall, wrapping around. A 1024 columns equal 360 degrees.
25 // The default sky map is 256 columns and repeats 4 times
26 // on a 320 screen?
27 //
29 //-----------------------------------------------------------------------------
31 static const char
32 rcsid[] = "$Id$";
35 // Needed for FRACUNIT.
36 #include "m_fixed.h"
38 // Needed for Flat retrieval.
39 #include "r_data.h"
41 #include "doomstat.h"
44 #ifdef __GNUG__
45 #pragma implementation "r_sky.h"
46 #endif
47 #include "r_sky.h"
51 // sky mapping
53 int skyflatnum;
54 int skytexture;
55 int skytexturemid;
60 // R_InitSkyMap
61 // Called whenever the view size changes.
63 void R_InitSkyMap (void)
65 // skyflatnum = R_FlatNumForName ( SKYFLATNAME );
66 skytexturemid = 100*FRACUNIT;