-
Notifications
You must be signed in to change notification settings - Fork 0
/
asset.h
37 lines (28 loc) · 1.2 KB
/
asset.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <stdlib.h>
#include <stdint.h>
#include "model.h"
#include "anim.h"
#include "edit_animation.h"
#include "stack_alloc.h"
#include "render_data.h"
#include "motion_matching.h"
#define ASSET_HEADER_CHECKSUM 123456
namespace Asset
{
void PackModel(Render::model* Model);
void UnpackModel(Render::model* Model);
void PackAnimation(Anim::animation* Animation);
void UnpackAnimation(Anim::animation* Animation);
void PackAnimationGroup(Anim::animation_group* AnimationGroup);
void UnpackAnimationGroup(Anim::animation_group* AnimationGroup);
void ExportAnimationGroup(Memory::stack_allocator* Alloc,
const EditAnimation::animation_editor* AnimEditor,
const char* FileName);
// void ImportAnimationGroup(Memory::stack_allocator* Alloc, Anim::animation_group**
// OutputAnimGroup, const char* FileName);
void PackMMController(mm_controller_data* Controller);
void UnpackMMController(mm_controller_data* Controller);
void ExportMMParams(const mm_params* Params, const char* FileName);
void ImportMMParams(Memory::stack_allocator* Alloc, mm_params* OutParams, const char* FileName);
}