diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /tool_src/BspLib/ObjectAodFormat.h | |
| download | openparsec-main.tar.xz openparsec-main.zip | |
Diffstat (limited to 'tool_src/BspLib/ObjectAodFormat.h')
| -rw-r--r-- | tool_src/BspLib/ObjectAodFormat.h | 52 |
1 files changed, 52 insertions, 0 deletions
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_ + |
