r_sky.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. static const char
  28. rcsid[] = "$Id: m_bbox.c,v 1.1 1997/02/03 22:45:10 b1 Exp $";
  29. // Needed for FRACUNIT.
  30. #include "m_fixed.h"
  31. // Needed for Flat retrieval.
  32. #include "r_data.h"
  33. #ifdef __GNUG__
  34. #pragma implementation "r_sky.h"
  35. #endif
  36. #include "r_sky.h"
  37. //
  38. // sky mapping
  39. //
  40. int skyflatnum;
  41. int skytexture;
  42. int skytexturemid;
  43. //
  44. // R_InitSkyMap
  45. // Called whenever the view size changes.
  46. //
  47. void R_InitSkyMap (void)
  48. {
  49. // skyflatnum = R_FlatNumForName ( SKYFLATNAME );
  50. skytexturemid = 100*FRACUNIT;
  51. }