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