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/ObjectAodFormat.h | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tool_src/BspLib/ObjectAodFormat.h (limited to 'tool_src/BspLib/ObjectAodFormat.h') diff --git a/tool_src/BspLib/ObjectAodFormat.h b/tool_src/BspLib/ObjectAodFormat.h new file mode 100644 index 0000000..e900616 --- /dev/null +++ b/tool_src/BspLib/ObjectAodFormat.h @@ -0,0 +1,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_ + -- cgit v1.2.3