Ajout de Jolt Physics + 1ere version des factory entitecomposants - camera, transform, rigidbody, collider, renderer
This commit is contained in:
26
lib/All/JoltPhysics/TestFramework/UI/UIAnimation.h
Normal file
26
lib/All/JoltPhysics/TestFramework/UI/UIAnimation.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
|
||||
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Jolt/Core/RTTI.h>
|
||||
|
||||
class UIElement;
|
||||
|
||||
/// Base class for UI element animations
|
||||
class UIAnimation
|
||||
{
|
||||
public:
|
||||
JPH_DECLARE_RTTI_VIRTUAL_BASE(JPH_NO_EXPORT, UIAnimation)
|
||||
|
||||
/// Destructor
|
||||
virtual ~UIAnimation() = default;
|
||||
|
||||
///@name Interface
|
||||
virtual void Init(UIElement *inElement) { }
|
||||
virtual bool Update(UIElement *inElement, float inDeltaTime) { return true; } ///< Returns false when done
|
||||
virtual void Exit(UIElement *inElement) { }
|
||||
};
|
||||
|
||||
using UIAnimationVector = Array<UIAnimation *>;
|
||||
Reference in New Issue
Block a user