From ebcc95da4c26369511caa90d89c5ed06e1e4853a Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Oct 2010 20:17:20 +0200 Subject: brlyt packing added, plus some changes in the existing API (mostly for const correctness). brlyt writing may still need some testing (especially for the material structs) --- lyt/common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lyt/common.h') diff --git a/lyt/common.h b/lyt/common.h index 9c39339..49061ce 100644 --- a/lyt/common.h +++ b/lyt/common.h @@ -25,11 +25,15 @@ union Magic { char str[4]; quint32 value; + + Magic(quint32 v) : value(v) { } }; union Version { char str[2]; quint16 value; + + Version(quint16 v) : value(v) { } }; -- cgit v1.2.3