aboutsummaryrefslogtreecommitdiff
path: root/tool_src/BspLib/ObjectAodFormat.h
blob: e900616df37de6185fe789dc2fa53c730579cc46 (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
49
50
51
52
//-----------------------------------------------------------------------------
//	BSPLIB HEADER: ObjectAodFormat.h
//
//  Copyright (c) 1997 by Markus Hadwiger
//  All Rights Reserved.
//-----------------------------------------------------------------------------

#ifndef _OBJECTAODFORMAT_H_
#define _OBJECTAODFORMAT_H_

// bsplib header files
#include "BspLibDefs.h"
#include "BspObject.h"
#include "AodFormat.h"


BSPLIB_NAMESPACE_BEGIN


// BspObject capable of AodFormat I/O operations ------------------------------
//
class ObjectAodFormat : public BspObject, public AodFormat {

public:
	ObjectAodFormat( BspObject& object, AodFormat& format );
	~ObjectAodFormat() { }

	virtual int		WriteVertexList( FileAccess& output );
	virtual int		WriteFaceList( FileAccess& output );
	virtual void	WriteFaceInfo( FileAccess& output, Polygon *poly, int& num );
	virtual int		WriteFaceProperties( FileAccess& output );
	virtual int		WriteTextureList( FileAccess& output );
	virtual int		WriteMappingList( FileAccess& output );
	virtual int		WriteNormals( FileAccess& output );

private:
	static char		line[]; // scratchpad
};

// construct by copying base class objects ------------------------------------
inline ObjectAodFormat::ObjectAodFormat( BspObject& object, AodFormat& format ) :
	BspObject( object ),
	AodFormat( format )
{
}


BSPLIB_NAMESPACE_END


#endif // _OBJECTAODFORMAT_H_