home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / quake / programs / qdtool10 / qdfunct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-03  |  1.3 KB  |  36 lines

  1. /*
  2.  * Copyright (C) 1996 by Chris Johnson.  All rights reserved.
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and
  5.  * its documentation for any purpose and without fee is hereby
  6.  * granted, provided that the above copyright notice appear in all
  7.  * copies and that both that copyright notice and this permission
  8.  * notice appear in supporting documentation.  If more than a few
  9.  * lines of this code are used in a program which displays a copyright
  10.  * notice or credit notice, the following acknowledgment must also be
  11.  * displayed on the same screen: "This product includes software
  12.  * developed by Chris Johnson for use in the QuakeDef Tools package."
  13.  * THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESSED OR IMPLIED
  14.  * WARRANTY.
  15.  *
  16.  * (Thanks to Raphael Quinet for this nifty disclaimer!)
  17.  */
  18.  
  19. #ifndef _QDFUNCT_H_
  20. #define _QDFUNCT_H_
  21.  
  22. // BSP Header number of elements
  23. #define    BH_NELEM            29
  24. // BSP Header QuakeDef offset element number
  25. #define BH_QD_ELEM            1
  26. // BSP Header QuakeDef (lump) size element number
  27. #define    BH_QDSIZE_ELEM        2
  28. // BSP Header post-QuakeDef offset element number
  29. #define BH_POSTQD_ELEM        5
  30.  
  31. long *    grab_addresses(FILE *bsp);
  32. int     export_quake_def(FILE *bsp, FILE *qdf, unsigned long len);
  33. void     import_quake_def(FILE *qdf, FILE *bsp);
  34. void     fix_bsp_hdr(FILE *bsp, long *ara, long diff);
  35.  
  36. #endif