qdata.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1997-2006 Id Software, Inc.
  4. This file is part of Quake 2 Tools source code.
  5. Quake 2 Tools source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake 2 Tools source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Quake 2 Tools source code; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. // qdata.h
  19. #include <stdlib.h>
  20. #include <stdio.h>
  21. #include <math.h>
  22. #include <string.h>
  23. #include <sys/stat.h>
  24. #include "cmdlib.h"
  25. #include "scriplib.h"
  26. #include "mathlib.h"
  27. #include "trilib.h"
  28. #include "lbmlib.h"
  29. #include "threads.h"
  30. #include "l3dslib.h"
  31. #include "bspfile.h"
  32. void Cmd_Modelname (void);
  33. void Cmd_Base (void);
  34. void Cmd_Cd (void);
  35. void Cmd_Origin (void);
  36. void Cmd_ScaleUp (void);
  37. void Cmd_Frame (void);
  38. void Cmd_Modelname (void);
  39. void Cmd_Skin (void);
  40. void Cmd_Skinsize (void);
  41. void FinishModel (void);
  42. void Cmd_Inverse16Table( void );
  43. void Cmd_SpriteName (void);
  44. void Cmd_Load (void);
  45. void Cmd_SpriteFrame (void);
  46. void FinishSprite (void);
  47. void Cmd_Grab (void);
  48. void Cmd_Raw (void);
  49. void Cmd_Mip (void);
  50. void Cmd_Environment (void);
  51. void Cmd_Colormap (void);
  52. void Cmd_File (void);
  53. void Cmd_Dir (void);
  54. void Cmd_StartWad (void);
  55. void Cmd_EndWad (void);
  56. void Cmd_Mippal (void);
  57. void Cmd_Mipdir (void);
  58. void Cmd_Alphalight (void);
  59. void Cmd_Video (void);
  60. void RemapZero (byte *pixels, byte *palette, int width, int height);
  61. void ReleaseFile (char *filename);
  62. extern byte *byteimage, *lbmpalette;
  63. extern int byteimagewidth, byteimageheight;
  64. extern qboolean g_release; // don't grab, copy output data to new tree
  65. extern char g_releasedir[1024]; // c:\quake2\baseq2, etc
  66. extern qboolean g_archive; // don't grab, copy source data to new tree
  67. extern qboolean do3ds;
  68. extern char g_only[256]; // if set, only grab this cd
  69. extern qboolean g_skipmodel; // set true when a cd is not g_only
  70. extern char *trifileext;