Add skeleton class for atom render plugin
Signed-off-by: rhhong <rhhong@amazon.com>
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include <EMotionStudio/Plugins/RenderPlugins/Source/AtomRender/AtomRenderPlugin.h>
|
||||
|
||||
namespace EMStudio
|
||||
{
|
||||
AtomRenderPlugin::AtomRenderPlugin()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
AtomRenderPlugin::~AtomRenderPlugin()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool AtomRenderPlugin::Init()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project.
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <EMotionStudio/EMStudioSDK/Source/DockWidgetPlugin.h>
|
||||
|
||||
namespace EMStudio
|
||||
{
|
||||
class AtomRenderPlugin
|
||||
: public DockWidgetPlugin
|
||||
{
|
||||
Q_OBJECT // AUTOMOC
|
||||
|
||||
public:
|
||||
enum
|
||||
{
|
||||
CLASS_ID = 0x32b0c04d
|
||||
};
|
||||
AtomRenderPlugin();
|
||||
~AtomRenderPlugin();
|
||||
|
||||
// Plugin information
|
||||
const char* GetCompileDate() const override
|
||||
{
|
||||
return MCORE_DATE;
|
||||
}
|
||||
const char* GetName() const override
|
||||
{
|
||||
return "Atom Render Window";
|
||||
}
|
||||
uint32 GetClassID() const override
|
||||
{
|
||||
return static_cast<uint32>(AtomRenderPlugin::CLASS_ID);
|
||||
}
|
||||
const char* GetCreatorName() const override
|
||||
{
|
||||
return "O3DE";
|
||||
}
|
||||
float GetVersion() const override
|
||||
{
|
||||
return 1.0f;
|
||||
}
|
||||
bool GetIsClosable() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
bool GetIsFloatable() const override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
bool GetIsVertical() const override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Init();
|
||||
EMStudioPlugin* Clone()
|
||||
{
|
||||
return new AtomRenderPlugin();
|
||||
}
|
||||
EMStudioPlugin::EPluginType GetPluginType() const override
|
||||
{
|
||||
return EMStudioPlugin::PLUGINTYPE_RENDERING;
|
||||
}
|
||||
};
|
||||
}
|
||||
+2
@@ -11,4 +11,6 @@ set(FILES
|
||||
Source/OpenGLRender/GLWidget.cpp
|
||||
Source/OpenGLRender/OpenGLRenderPlugin.h
|
||||
Source/OpenGLRender/OpenGLRenderPlugin.cpp
|
||||
Source/AtomRender/AtomRenderPlugin.h
|
||||
Source/AtomRender/AtomRenderPlugin.cpp
|
||||
)
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
# include <EMotionStudio/Plugins/StandardPlugins/Source/NodeGroups/NodeGroupsPlugin.h>
|
||||
# include <EMotionStudio/Plugins/StandardPlugins/Source/AnimGraph/AnimGraphPlugin.h>
|
||||
# include <EMotionStudio/Plugins/RenderPlugins/Source/OpenGLRender/OpenGLRenderPlugin.h>
|
||||
# include <EMotionStudio/Plugins/RenderPlugins/Source/AtomRender/AtomRenderPlugin.h>
|
||||
# include <Editor/Plugins/HitDetection/HitDetectionJointInspectorPlugin.h>
|
||||
# include <Editor/Plugins/SkeletonOutliner/SkeletonOutlinerPlugin.h>
|
||||
# include <Editor/Plugins/Ragdoll/RagdollNodeInspectorPlugin.h>
|
||||
@@ -794,6 +795,7 @@ namespace EMotionFX
|
||||
pluginManager->RegisterPlugin(new EMStudio::NodeGroupsPlugin());
|
||||
pluginManager->RegisterPlugin(new EMStudio::AnimGraphPlugin());
|
||||
pluginManager->RegisterPlugin(new EMStudio::OpenGLRenderPlugin());
|
||||
pluginManager->RegisterPlugin(new EMStudio::AtomRenderPlugin());
|
||||
pluginManager->RegisterPlugin(new EMotionFX::HitDetectionJointInspectorPlugin());
|
||||
pluginManager->RegisterPlugin(new EMotionFX::SkeletonOutlinerPlugin());
|
||||
pluginManager->RegisterPlugin(new EMotionFX::RagdollNodeInspectorPlugin());
|
||||
|
||||
Reference in New Issue
Block a user