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