From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- tool_src/BspLib/BspInput.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tool_src/BspLib/BspInput.h (limited to 'tool_src/BspLib/BspInput.h') 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_ + -- cgit v1.2.3