aboutsummaryrefslogtreecommitdiff
path: root/Source/Serialize.h
diff options
context:
space:
mode:
authorrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-08 09:05:22 +0000
committerrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-08 09:05:22 +0000
commit8efed35df02822682576bae088f5b6a5c78e8dc9 (patch)
treeda099501696fe5456a95e85c98d5b746176419ee /Source/Serialize.h
parent9c22203ab6b1f6f61ec4b7c52a7c9c51da9e5844 (diff)
downloadblackshades-8efed35df02822682576bae088f5b6a5c78e8dc9.tar.gz
start of serialization
git-svn-id: svn://svn.icculus.org/blackshades/trunk@44 5198baeb-e213-0410-be47-fc2ff85ca46f
Diffstat (limited to 'Source/Serialize.h')
-rw-r--r--Source/Serialize.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Serialize.h b/Source/Serialize.h
new file mode 100644
index 0000000..b50aad3
--- /dev/null
+++ b/Source/Serialize.h
@@ -0,0 +1,12 @@
+#ifndef SERIALIZE_H
+#define SERIALIZE_H
+
+/* these all read big-endian data */
+
+int ReadShort(int fd, int count, short *s);
+int ReadInt(int fd, int count, int *s);
+int ReadFloat(int fd, int count, float *f);
+int ReadXYZ(int fd, int count, XYZ *xyz);
+int ReadTexturedTriangle(int fd, int count, TexturedTriangle *tt);
+
+#endif