diff options
Diffstat (limited to 'src/Serialize.h')
-rw-r--r-- | src/Serialize.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Serialize.h b/src/Serialize.h new file mode 100644 index 0000000..4ecb46d --- /dev/null +++ b/src/Serialize.h @@ -0,0 +1,13 @@ +#ifndef SERIALIZE_H +#define SERIALIZE_H + +/* these all read big-endian data */ + +int ReadBool(int fd, int count, bool *b); +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 |