-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFileLoader.h
More file actions
63 lines (53 loc) · 1.34 KB
/
Copy pathFileLoader.h
File metadata and controls
63 lines (53 loc) · 1.34 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// FileLoader.h: interface for the CFileLoader class.
//
//////////////////////////////////////////////////////////////////////
#ifndef FILELOADER_H
#define FILELOADER_H
#include "windows.h"
#include "BSP/BSPFile.h"
#include "MAP/MAPFile.h"
#include "RMF/RMFFile.h"
#include "WAD/WADFile.h"
#include "MS3D/MS3DFile.h"
#include "ThreeD.h"
class CFileLoader
{
private:
HWND hParent;
CBSPFile* bsp;
CMAPFile* map;
CRMFFile* rmf;
CWADFile* wad;
CMS3DFile* ms3d;
bool OpenFile(HWND hOwner, char* result, char *szFilter, char *szDefExt);
bool Directory(HWND hOwner, char* result);
bool SaveFile(HWND hOwner, char* result, char *szFilter, char *szDefExt);
public:
CFileLoader(HWND hParent);
virtual ~CFileLoader();
bool LoadBSP() throw();
bool LoadMAP() throw();
bool LoadRMF() throw();
bool LoadWAD() throw();
bool LoadMS3D() throw();
int SaveBSPTextures();
int SaveBSPEntities();
int SaveMAPFile();
int SaveWADTextures();
bool SaveMS3D();
int ShowRMF3D();
int ShowMS3D3D();
void CloseBSP();
void CloseMAP();
void CloseRMF();
void CloseWAD();
void CloseMS3D();
int DrawBSP(HDC hdc, int x, int y);
int DrawMAP(HDC hdc, int x, int y);
int DrawRMF(HDC hdc, int x, int y);
int DrawWAD(HDC hdc, int x, int y);
int DrawMS3D(HDC hdc, int x, int y);
CWADMiptex* GetBSPTetxure(int index);
CWADMiptex* GetWADTetxure(int index);
};
#endif