Merge pull request #43 from SHADE-DP/SP3-16-Math
SP3-16 Reworked Transform System UPDATES Reworked transform system to match intended system structure
This commit is contained in:
commit
802e038938
|
@ -21,12 +21,18 @@
|
||||||
|
|
||||||
namespace SHADE
|
namespace SHADE
|
||||||
{
|
{
|
||||||
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
/* Static Data Member Definitions */
|
||||||
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
//SHTransformSystem::TransformUpdateRoutine SHTransformSystem::UpdateRoutine;
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
/* Constructors & Destructor Definitions */
|
/* Constructors & Destructor Definitions */
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
SHTransformSystem::SHTransformSystem()
|
SHTransformSystem::TransformUpdateRoutine::TransformUpdateRoutine()
|
||||||
: SHSystemRoutine { "Transform Routine", false }
|
: SHSystemRoutine { "Transform Update", false }
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,7 +40,7 @@ namespace SHADE
|
||||||
/* Public Function Member Definitions */
|
/* Public Function Member Definitions */
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
void SHTransformSystem::Execute(double dt) noexcept
|
void SHTransformSystem::TransformUpdateRoutine::Execute(double) noexcept
|
||||||
{
|
{
|
||||||
// Get the current scene graph to traverse and update
|
// Get the current scene graph to traverse and update
|
||||||
const auto& SCENE_GRAPH = SHSceneManager::GetCurrentSceneGraph();
|
const auto& SCENE_GRAPH = SHSceneManager::GetCurrentSceneGraph();
|
||||||
|
|
|
@ -21,15 +21,14 @@ namespace SHADE
|
||||||
/* Type Definitions */
|
/* Type Definitions */
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class SH_API SHTransformSystem : public SHSystemRoutine
|
class SH_API SHTransformSystem : public SHSystem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
/* Constructors & Destructor */
|
/* Constructors & Destructor */
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
SHTransformSystem ();
|
SHTransformSystem () = default;
|
||||||
~SHTransformSystem () = default;
|
~SHTransformSystem () = default;
|
||||||
|
|
||||||
SHTransformSystem (const SHTransformSystem&) = delete;
|
SHTransformSystem (const SHTransformSystem&) = delete;
|
||||||
|
@ -43,10 +42,37 @@ namespace SHADE
|
||||||
SHTransformSystem& operator= (SHTransformSystem&&) = delete;
|
SHTransformSystem& operator= (SHTransformSystem&&) = delete;
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
/* Function Members */
|
/* System Routines */
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
class TransformUpdateRoutine : public SHSystemRoutine
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
/*-------------------------------------------------------------------------------*/
|
||||||
|
/* Constructors & Destructor */
|
||||||
|
/*-------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
TransformUpdateRoutine ();
|
||||||
|
~TransformUpdateRoutine () = default;
|
||||||
|
|
||||||
|
TransformUpdateRoutine (const TransformUpdateRoutine&) = delete;
|
||||||
|
TransformUpdateRoutine (TransformUpdateRoutine&&) = delete;
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------------------*/
|
||||||
|
/* Operator Overloads */
|
||||||
|
/*-------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
TransformUpdateRoutine& operator= (const TransformUpdateRoutine&) = delete;
|
||||||
|
TransformUpdateRoutine& operator= (TransformUpdateRoutine&&) = delete;
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------------------*/
|
||||||
|
/* Function Members */
|
||||||
|
/*-------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
void Execute(double dt) noexcept override;
|
void Execute(double dt) noexcept override;
|
||||||
|
};
|
||||||
|
|
||||||
|
//static TransformUpdateRoutine UpdateRoutine;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/*---------------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in New Issue