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:
parent
89e7bacd99
commit
eed727c61b
18 changed files with 795 additions and 821 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue