aboutsummaryrefslogtreecommitdiff
path: root/tool_src/BspLib/ObjectAodFormat.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/ObjectAodFormat.h
downloadopenparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz
openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip
initial importHEADmain
Diffstat (limited to 'tool_src/BspLib/ObjectAodFormat.h')
-rw-r--r--tool_src/BspLib/ObjectAodFormat.h52
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_
+