2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_SNAPSHOT_XML_H
|
|
|
|
#define DUST3D_SNAPSHOT_XML_H
|
|
|
|
#include <QXmlStreamWriter>
|
|
|
|
#include "snapshot.h"
|
|
|
|
|
2020-04-07 23:15:20 +00:00
|
|
|
#define SNAPSHOT_ITEM_CANVAS 0x00000001
|
|
|
|
#define SNAPSHOT_ITEM_COMPONENT 0x00000002
|
|
|
|
#define SNAPSHOT_ITEM_MATERIAL 0x00000004
|
2020-11-09 10:46:06 +00:00
|
|
|
#define SNAPSHOT_ITEM_MOTION 0x00000008
|
2020-04-07 23:15:20 +00:00
|
|
|
#define SNAPSHOT_ITEM_ALL ( \
|
|
|
|
SNAPSHOT_ITEM_CANVAS | \
|
|
|
|
SNAPSHOT_ITEM_COMPONENT | \
|
|
|
|
SNAPSHOT_ITEM_MATERIAL | \
|
|
|
|
SNAPSHOT_ITEM_MOTION \
|
|
|
|
)
|
|
|
|
|
2018-10-25 00:19:38 +00:00
|
|
|
void saveSkeletonToXmlStream(Snapshot *snapshot, QXmlStreamWriter *writer);
|
2020-04-07 23:15:20 +00:00
|
|
|
void loadSkeletonFromXmlStream(Snapshot *snapshot, QXmlStreamReader &reader,
|
|
|
|
quint32 flags=SNAPSHOT_ITEM_ALL);
|
2018-10-25 00:19:38 +00:00
|
|
|
|
|
|
|
#endif
|