aboutsummaryrefslogtreecommitdiff
path: root/tool_src/BspLib/BspInput.h
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
commitc068f22329d5cc722622a2183bbb22eef2093df7 (patch)
tree12d56c1aede67988a55e241364606bfbb4dba933 /tool_src/BspLib/BspInput.h
downloadopenparsec-main.tar.xz
openparsec-main.zip
initial importHEADmain
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_
+