mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Skeleton and AnimationClip now refcounted
This commit is contained in:
@@ -5,8 +5,8 @@ namespace GlitchyEngine.Renderer.Animation
|
||||
{
|
||||
class AnimationPlayer
|
||||
{
|
||||
public Skeleton Skeleton;
|
||||
public AnimationClip CurrentClip;
|
||||
public Skeleton Skeleton ~ _.ReleaseRef();
|
||||
public AnimationClip CurrentClip ~ _.ReleaseRef();
|
||||
public float TimeStamp;
|
||||
|
||||
public SkeletonPose Pose ~ delete _;
|
||||
@@ -64,9 +64,9 @@ namespace GlitchyEngine.Renderer.Animation
|
||||
}
|
||||
}
|
||||
|
||||
class AnimationClip
|
||||
class AnimationClip : RefCounted
|
||||
{
|
||||
public Skeleton Skeleton;
|
||||
public Skeleton Skeleton ~ _.ReleaseRef();
|
||||
public float FramesPerSecond;
|
||||
public JointAnimation[] JointAnimations;
|
||||
public bool IsLooping;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
using System;
|
||||
using GlitchyEngine.Math;
|
||||
|
||||
namespace GlitchyEngine.Renderer.Animation
|
||||
{
|
||||
public class Skeleton
|
||||
public class Skeleton : RefCounted
|
||||
{
|
||||
public Joint[] Joints ~ delete _;
|
||||
|
||||
@@ -25,7 +26,7 @@ namespace GlitchyEngine.Renderer.Animation
|
||||
|
||||
public class SkeletonPose
|
||||
{
|
||||
public Skeleton Skeleton;
|
||||
public Skeleton Skeleton ~ _.ReleaseRef();
|
||||
public JointPose[] LocalPose ~ delete _;
|
||||
public Matrix[] GlobalPose ~ delete _;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user