diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-17 14:20:54 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-17 14:22:53 +0700 |
| commit | 602a0c5951050e7cce645534cb4f136cf9f4fee4 (patch) | |
| tree | e70e63b0b0058830e58c244ad917bc892c10418f /src/Serialize.h | |
| parent | 094e12df1ebb81d304803be4b274546384ec117c (diff) | |
| download | blackshades-602a0c5951050e7cce645534cb4f136cf9f4fee4.tar.gz | |
Rename source and build directory1.1.1
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 |
