Classes
Namespaces
Includes
Included by
Source
/*
* Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*
* Restricted Rights Legend
*
* Use, duplication, or disclosure of this
* software and its documentation by the
* Government is subject to restrictions as
* set forth in subdivision [(b)(3)(ii)] of
* the Rights in Technical Data and Computer
* Software clause at 52.227-7013.
*/
#ifndef __INCLUDED_GLTF_GLTFANIMATION__
#define __INCLUDED_GLTF_GLTFANIMATION__
#include "GLTFCommon.h"
#include "GLTFObject.h"
namespace ANSYS { namespace AVZ { namespace GLTFWriter {
class GLTF;
class Attribute;
class Material;
class Node;
class AnimationSampler : public Object
{
public:
enum AnimationSamplerType
{
AST_LINEAR
};
protected:
virtual ~AnimationSampler() {}
public:
static GLTFWRITERSPEC AnimationSampler *Create(GLTF *gltf,
Attribute *input,
Attribute *output,
AnimationSamplerType type = AST_LINEAR
);
};
class Animation
{
protected:
virtual ~Animation() {}
public:
static GLTFWRITERSPEC Animation *Create(GLTF *gltf,
const char *name = 0
);
GLTFWRITERSPEC virtual bool AppendChannel(AnimationSampler *sampler,
Node *target,
const char *path
) = 0;
GLTFWRITERSPEC virtual bool AppendChannel(AnimationSampler *sampler,
Material *target,
const char *path
) = 0;
};
} } }
#endif