summary refs log tree commit diff
path: root/src/Serialize.h
blob: 4ecb46de18425f7971c6438383021c89d42d4f13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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