Skeleton and AnimationClip now refcounted

This commit is contained in:
Simon Lübeß
2021-09-11 12:48:49 +02:00
parent 155495eeef
commit fc2f1cd7e6
2 changed files with 7 additions and 6 deletions
@@ -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 _;