Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  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.
  11. //
  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.
  16. //
  17. // $Log:$
  18. //
  19. // DESCRIPTION:
  20. //  Sky rendering. The DOOM sky is a texture map like any
  21. //  wall, wrapping around. A 1024 columns equal 360 degrees.
  22. //  The default sky map is 256 columns and repeats 4 times
  23. //  on a 320 screen?
  24. //  
  25. //
  26. //-----------------------------------------------------------------------------
  27.  
  28. static const char
  29. rcsid[] = "$Id: m_bbox.c,v 1.1 1997/02/03 22:45:10 b1 Exp $";
  30.  
  31.  
  32. // Needed for FRACUNIT.
  33. #include "m_fixed.h"
  34.  
  35. // Needed for Flat retrieval.
  36. #include "r_data.h"
  37.  
  38.  
  39. #ifdef __GNUG__
  40. #pragma implementation "r_sky.h"
  41. #endif
  42. #include "r_sky.h"
  43.  
  44. //
  45. // sky mapping
  46. //
  47. int                     skyflatnum;
  48. int                     skytexture;
  49. int                     skytexturemid;
  50.  
  51.  
  52.  
  53. //
  54. // R_InitSkyMap
  55. // Called whenever the view size changes.
  56. //
  57. void R_InitSkyMap (void)
  58. {
  59.   // skyflatnum = R_FlatNumForName ( SKYFLATNAME );
  60.     skytexturemid = 100*FRACUNIT;
  61. }
  62.  
  63.