1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Completely generalized mesh generation; ContentFeatures serialization

This commit is contained in:
Perttu Ahola 2011-11-15 19:58:36 +02:00
parent 89e7bacd99
commit eed727c61b
18 changed files with 795 additions and 821 deletions

View file

@ -235,6 +235,19 @@ inline u32 readU32(std::istream &is)
return readU32((u8*)buf);
}
inline void writeS32(std::ostream &os, u32 p)
{
char buf[4];
writeS32((u8*)buf, p);
os.write(buf, 4);
}
inline u32 readS32(std::istream &is)
{
char buf[4];
is.read(buf, 4);
return readS32((u8*)buf);
}
inline void writeF1000(std::ostream &os, f32 p)
{
char buf[4];