aboutsummaryrefslogtreecommitdiff
path: root/tool_src/BspLib/BspInput.h
blob: 930e112346cc0274b63e6174ab6333fbc21cdab1 (plain)
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
//-----------------------------------------------------------------------------
//	BSPLIB HEADER: BspInput.h
//
//  Copyright (c) 1996-1998 by Markus Hadwiger
//  All Rights Reserved.
//-----------------------------------------------------------------------------

#ifndef _BSPINPUT_H_
#define _BSPINPUT_H_

// bsplib header files
#include "BspLibDefs.h"
#include "BspFormat.h"
#include "SingleInput.h"


BSPLIB_NAMESPACE_BEGIN


// file input class for bsp format files --------------------------------------
//
class BspInput : public BspFormat, public SingleInput {

public:
	BspInput( BspObjectList objectlist, const char *filename );
	~BspInput();

	BspInput& operator =( const BspInput& copyobj );

public:
	int		ParseObjectData();

private:
	void	CorrectMappingCoordinates();
	void	ReadPolyIndxs( int& facesread );
	void	ReadDirectCorrespondences( int& facesread );
	void	ReadBspTree();

protected:
	void	ParseError( int section );
};


BSPLIB_NAMESPACE_END


#endif // _BSPINPUT_H_