Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1011 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // wadlib.h
  9. //
  10. // wad reading
  11. //
  12. #define CMP_NONE 0
  13. #define CMP_LZSS 1
  14. #define TYP_NONE 0
  15. #define TYP_LABEL 1
  16. #define TYP_LUMPY 64 // 64 + grab command number
  17. #ifndef WADTYPES_H
  18. #include "wadtypes.h"
  19. #endif
  20. extern lumpinfo_t *lumpinfo; // location of each lump on disk
  21. extern int numlumps;
  22. extern wadinfo_t header;
  23. void W_OpenWad (char *filename);
  24. int W_CheckNumForName (char *name);
  25. int W_GetNumForName (char *name);
  26. int W_LumpLength (int lump);
  27. void W_ReadLumpNum (int lump, void *dest);
  28. void *W_LoadLumpNum (int lump);
  29. void *W_LoadLumpName (char *name);
  30. void CleanupName (char *in, char *out);
  31. //
  32. // wad creation
  33. //
  34. void NewWad (char *pathname, qboolean bigendien);
  35. void AddLump (char *name, void *buffer, int length, int type, int compress);
  36. void WriteWad (int wad3);