aboutsummaryrefslogtreecommitdiff
path: root/tool_src/BspLib/BspInput.h
diff options
context:
space:
mode:
Diffstat (limited to 'tool_src/BspLib/BspInput.h')
-rw-r--r--tool_src/BspLib/BspInput.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/tool_src/BspLib/BspInput.h b/tool_src/BspLib/BspInput.h
new file mode 100644
index 0000000..930e112
--- /dev/null
+++ b/tool_src/BspLib/BspInput.h
@@ -0,0 +1,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_
+