r_data.h 1.5 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. // DESCRIPTION:
  18. // Refresh module, data I/O, caching, retrieval of graphics
  19. // by name.
  20. //
  21. //-----------------------------------------------------------------------------
  22. #ifndef __R_DATA__
  23. #define __R_DATA__
  24. #include "r_defs.h"
  25. #include "r_state.h"
  26. #ifdef __GNUG__
  27. #pragma interface
  28. #endif
  29. // Retrieve column data for span blitting.
  30. byte*
  31. R_GetColumn
  32. ( int tex,
  33. int col );
  34. // I/O, setting up the stuff.
  35. void R_InitData (void);
  36. void R_PrecacheLevel (void);
  37. // Retrieval.
  38. // Floor/ceiling opaque texture tiles,
  39. // lookup by name. For animation?
  40. int R_FlatNumForName (char* name);
  41. // Called by P_Ticker for switches and animations,
  42. // returns the texture number for the texture name.
  43. int R_TextureNumForName (char *name);
  44. int R_CheckTextureNumForName (char *name);
  45. #endif
  46. //-----------------------------------------------------------------------------
  47. //
  48. // $Log:$
  49. //
  50. //-----------------------------------------------------------------------------