CSEngine
Loading...
Searching...
No Matches
DAEConvertSGameObject.h
1//
2// Created by ounols on 19. 2. 9.
3//
4
5#pragma once
6
7#include "../../../Animation/Joint.h"
8#include "../DAEAnimationLoader.h"
9#include "../../../../Object/SGameObject.h"
10#include "../../../Animation/AnimationUtil.h"
11#include "../../../Animation/Animation.h"
12
13namespace CSE {
14
15 class KeyFrame;
16
17 class JointTransform;
18 class JointComponent;
19
21 public:
23
25
26 static SGameObject* CreateJoints(SGameObject* parent, Joint* data);
27
28 static SGameObject* CreateAnimation(SGameObject* parent, JointComponent* rootJoint, AnimationData* animationData,
29 const std::string& name, Animation* animation = nullptr);
30
31 private:
32 static KeyFrame* CreateKeyFrame(KeyFrameData* data);
33
34 static JointTransform* CreateTransform(JointTransformData* data);
35 };
36}