| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#include "cmdlib.h" |
| 24 |
#include "mathlib.h" |
| 25 |
#include "lbmlib.h" |
| 26 |
#include "trilib.h" |
| 27 |
#include "l3dslib.h" |
| 28 |
|
| 29 |
#include <windows.h> |
| 30 |
#include <GL/gl.h> |
| 31 |
#include <GL/glu.h> |
| 32 |
#include <GL/glaux.h> |
| 33 |
#include "resource.h" |
| 34 |
#include "afxres.h" |
| 35 |
|
| 36 |
extern HINSTANCE main_instance; |
| 37 |
|
| 38 |
extern HGLRC baseRC; |
| 39 |
|
| 40 |
extern HWND mainwindow; |
| 41 |
extern HWND camerawindow; |
| 42 |
extern HWND palettewindow; |
| 43 |
extern HWND skinwindow; |
| 44 |
|
| 45 |
extern int screen_width, screen_height; |
| 46 |
|
| 47 |
#define QE3_STYLE (WS_OVERLAPPED| WS_CAPTION | WS_THICKFRAME | \ |
| 48 |
WS_MAXIMIZEBOX | WS_CLIPSIBLINGS | \ |
| 49 |
WS_CLIPCHILDREN | WS_CHILD) |
| 50 |
|
| 51 |
extern byte pic[1024*512]; |
| 52 |
extern unsigned rgb[1024*512]; |
| 53 |
extern unsigned index_texture[1024*512]; |
| 54 |
extern byte palette[768]; |
| 55 |
|
| 56 |
extern triangle_t *faces; |
| 57 |
extern int numfaces; |
| 58 |
extern float tmcoords[10000][3][2]; |
| 59 |
|
| 60 |
extern int skinwidth, skinheight; |
| 61 |
extern int picwidth, picheight; |
| 62 |
extern int width, height; |
| 63 |
extern int iwidth, iheight; |
| 64 |
extern int width2, height2; |
| 65 |
|
| 66 |
extern char tri_filename[1024]; |
| 67 |
extern char skin_filename[1024]; |
| 68 |
|
| 69 |
extern int selected_index; |
| 70 |
extern unsigned selected_rgb; |
| 71 |
|
| 72 |
extern qboolean model_lines; |
| 73 |
extern qboolean skin_lines; |
| 74 |
|
| 75 |
extern qboolean modified; |
| 76 |
extern qboolean modified_past_autosave; |
| 77 |
|
| 78 |
#define TEXTURE_SKIN 1 |
| 79 |
#define TEXTURE_INDEX 2 |
| 80 |
|
| 81 |
#define MENU_VIEW 2 |
| 82 |
|
| 83 |
#define MODEL_DISPLAYLIST 1 |
| 84 |
|
| 85 |
typedef void (APIENTRY *BINDTEXFUNCPTR)(GLenum, GLuint); |
| 86 |
|
| 87 |
extern BINDTEXFUNCPTR BindTextureEXT; |
| 88 |
|