| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#include "globaldefs.h" |
| 23 |
#include <stdlib.h> |
| 24 |
#include <stdio.h> |
| 25 |
#include <math.h> |
| 26 |
#include <string.h> |
| 27 |
#include <sys/stat.h> |
| 28 |
|
| 29 |
#include "cmdlib.h" |
| 30 |
#include "scriplib.h" |
| 31 |
#include "mathlib.h" |
| 32 |
#include "trilib.h" |
| 33 |
#include "lbmlib.h" |
| 34 |
#include "q2_threads.h" |
| 35 |
#include "l3dslib.h" |
| 36 |
#include "bspfile.h" |
| 37 |
|
| 38 |
#if GDEF_COMPILER_MSVC |
| 39 |
#ifdef NDEBUG |
| 40 |
#pragma warning(disable : 4305) // truncate from double to float |
| 41 |
#pragma warning(disable : 4244) // conversion from double to float |
| 42 |
#pragma warning(disable : 4018) // signed/unsigned mismatch |
| 43 |
#endif |
| 44 |
#endif |
| 45 |
|
| 46 |
void Cmd_Modelname( void ); |
| 47 |
void Cmd_Base( void ); |
| 48 |
void Cmd_Cd( void ); |
| 49 |
void Cmd_Origin( void ); |
| 50 |
void Cmd_ScaleUp( void ); |
| 51 |
void Cmd_Frame( void ); |
| 52 |
void Cmd_Modelname( void ); |
| 53 |
void Cmd_Skin( void ); |
| 54 |
void Cmd_Skinsize( void ); |
| 55 |
void FinishModel( void ); |
| 56 |
|
| 57 |
void Cmd_Inverse16Table( void ); |
| 58 |
|
| 59 |
void Cmd_SpriteName( void ); |
| 60 |
void Cmd_Load( void ); |
| 61 |
void Cmd_SpriteFrame( void ); |
| 62 |
void FinishSprite( void ); |
| 63 |
|
| 64 |
void Cmd_Grab( void ); |
| 65 |
void Cmd_Raw( void ); |
| 66 |
void Cmd_Mip( void ); |
| 67 |
void Cmd_Environment( void ); |
| 68 |
void Cmd_Colormap( void ); |
| 69 |
|
| 70 |
void Cmd_File( void ); |
| 71 |
void Cmd_Dir( void ); |
| 72 |
void Cmd_StartWad( void ); |
| 73 |
void Cmd_EndWad( void ); |
| 74 |
void Cmd_Mippal( void ); |
| 75 |
void Cmd_Mipdir( void ); |
| 76 |
void Cmd_Alphalight( void ); |
| 77 |
|
| 78 |
void Cmd_Video( void ); |
| 79 |
|
| 80 |
void RemapZero( byte *pixels, byte *palette, int width, int height ); |
| 81 |
|
| 82 |
void ReleaseFile( char *filename ); |
| 83 |
|
| 84 |
extern byte *byteimage, *lbmpalette; |
| 85 |
extern int byteimagewidth, byteimageheight; |
| 86 |
|
| 87 |
extern qboolean g_release; |
| 88 |
extern char g_releasedir[1024]; |
| 89 |
extern qboolean g_archive; |
| 90 |
extern qboolean do3ds; |
| 91 |
extern char g_only[256]; |
| 92 |
extern qboolean g_skipmodel; |
| 93 |
|
| 94 |
extern char *trifileext; |