diff options
Diffstat (limited to 'utils/hlmv/pakviewer.h')
| -rw-r--r-- | utils/hlmv/pakviewer.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/utils/hlmv/pakviewer.h b/utils/hlmv/pakviewer.h new file mode 100644 index 0000000..c5c4acf --- /dev/null +++ b/utils/hlmv/pakviewer.h @@ -0,0 +1,99 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +// +// Half-Life Model Viewer (c) 1999 by Mete Ciragan +// +// file: pakviewer.h +// last modified: Apr 28 1999, Mete Ciragan +// copyright: The programs and associated files contained in this +// distribution were developed by Mete Ciragan. The programs +// are not in the public domain, but they are freely +// distributable without licensing fees. These programs are +// provided without guarantee or warrantee expressed or +// implied. +// +// version: 1.2 +// +// email: [email protected] +// web: http://www.swissquake.ch/chumbalum-soft/ +// +#ifndef INCLUDED_PAKVIEWER +#define INCLUDED_PAKVIEWER + + + +#ifndef INCLUDED_MXWINDOW +#include "mxWindow.h" +#endif + + + +#define IDC_PAKVIEWER 1001 + + + +typedef struct +{ + char name[56]; + int filepos; + int filelen; +} lump_t; + + + +#ifdef __cpluspus +extern "C" { +#endif + +int pak_ExtractFile (const char *pakFile, const char *lumpName, char *outFile); + +#ifdef __cpluspus +} +#endif + + + +class mxTreeView; +class mxButton; +class mxPopupMenu; +// class GlWindow; + + + +class PAKViewer : public mxWindow +{ + char d_pakFile[256]; + char d_currLumpName[256]; + bool d_loadEntirePAK; + mxTreeView *tvPAK; + mxPopupMenu *pmMenu; + +public: + // CREATORS + PAKViewer (mxWindow *window); + ~PAKViewer (); + + // MANIPULATORS + virtual int handleEvent (mxEvent *event); + int OnPAKViewer (); + int OnLoadModel (); + int OnLoadTexture (int pos); + int OnPlaySound (); + int OnExtract (); + + bool openPAKFile (const char *pakFile); + void closePAKFile (); + void setLoadEntirePAK (bool b) { d_loadEntirePAK = b; } + + // ACCESSORS + bool getLoadEntirePAK () const { return d_loadEntirePAK; } +}; + + + +#endif // INCLUDED_PAKVIEWER
\ No newline at end of file |