[EMotionFX] Prefer #pragma once (#6435)

Signed-off-by: Chris Burel <burelc@amazon.com>
This commit is contained in:
Chris Burel
2021-12-16 13:42:38 -08:00
committed by GitHub
parent 285d92ff0d
commit f52d49834a
54 changed files with 64 additions and 253 deletions
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMFX_ACTORINSTANCECOMMANDS_H
#define __EMFX_ACTORINSTANCECOMMANDS_H
#pragma once
// include the required headers
#include "CommandSystemConfig.h"
@@ -61,6 +60,3 @@ public:
void COMMANDSYSTEM_API MakeSelectedActorInstancesVisible();
void COMMANDSYSTEM_API UnselectSelectedActorInstances();
} // namespace CommandSystem
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMFX_ATTACHMENTCOMMANDS_H
#define __EMFX_ATTACHMENTCOMMANDS_H
#pragma once
// include the required headers
#include "CommandSystemConfig.h"
@@ -35,6 +34,3 @@ public:
static bool AddAttachment(MCore::Command* command, const MCore::CommandLine& parameters, AZStd::string& outResult, bool remove);
MCORE_DEFINECOMMAND_END
} // namespace CommandSystem
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __COMMANDSYSTEM_CONFIG_H
#define __COMMANDSYSTEM_CONFIG_H
#pragma once
#include <MCore/Source/StandardHeaders.h>
@@ -35,5 +34,3 @@ enum
{
MEMCATEGORY_COMMANDSYSTEM = 990
};
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMFX_IMPORTERCOMMANDS_H
#define __EMFX_IMPORTERCOMMANDS_H
#pragma once
// include the required headers
#include "CommandSystemConfig.h"
@@ -35,6 +34,3 @@ public:
MCORE_DEFINECOMMAND_END
} // namespace CommandSystem
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMFX_MORPHTARGETCOMMANDS_H
#define __EMFX_MORPHTARGETCOMMANDS_H
#pragma once
// include the required headers
#include "CommandSystemConfig.h"
@@ -30,6 +29,3 @@ namespace CommandSystem
bool GetMorphTarget(EMotionFX::Actor* actor, EMotionFX::ActorInstance* actorInstance, uint32 lodLevel, const char* morphTargetName, EMotionFX::MorphTarget** outMorphTarget, EMotionFX::MorphSetupInstance::MorphTarget** outMorphTargetInstance, AZStd::string& outResult);
MCORE_DEFINECOMMAND_END
} // namespace CommandSystem
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMFX_SELECTIONCOMMANDS_H
#define __EMFX_SELECTIONCOMMANDS_H
#pragma once
// include the required headers
#include "CommandSystemConfig.h"
@@ -49,6 +48,3 @@ public:
bool COMMANDSYSTEM_API CheckIfHasAnimGraphSelectionParameter(const MCore::CommandLine& parameters);
bool COMMANDSYSTEM_API CheckIfHasActorSelectionParameter(const MCore::CommandLine& parameters, bool ignoreInstanceParameters = false);
} // namespace CommandSystem
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MCOMMON_CAMERA_H
#define __MCOMMON_CAMERA_H
#pragma once
#include <AzCore/Math/Matrix4x4.h>
#include <AzCore/Math/Vector2.h>
@@ -280,6 +279,3 @@ namespace MCommon
// include inline code
#include "Camera.inl"
} // namespace MCommon
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MCOMMON_FIRSTPERSONCAMERA_H
#define __MCOMMON_FIRSTPERSONCAMERA_H
#pragma once
// include required headers
#include "Camera.h"
@@ -124,6 +123,3 @@ namespace MCommon
float m_roll; /**< Rotation around axis of screen. (0=straight, +clockwise, -CCW) */
};
} // namespace MCommon
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MCOMMON_LOOKATCAMERA_H
#define __MCOMMON_LOOKATCAMERA_H
#pragma once
// include required headers
#include "Camera.h"
@@ -91,6 +90,3 @@ namespace MCommon
AZ::Vector3 m_up; /**< The up vector of the camera. */
};
} // namespace MCommon
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MCOMMON_CONFIG_H
#define __MCOMMON_CONFIG_H
#pragma once
#include <MCore/Source/StandardHeaders.h>
@@ -27,5 +26,3 @@ enum
{
MEMCATEGORY_MCOMMON = 992,
};
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MCOMMON_ORBITCAMERA_H
#define __MCOMMON_ORBITCAMERA_H
#pragma once
// include required headers
#include "LookAtCamera.h"
@@ -125,6 +124,3 @@ namespace MCommon
float m_flightTargetBeta;
};
} // namespace MCommon
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MCOMMON_TRANSLATEMANIPULATOR_H
#define __MCOMMON_TRANSLATEMANIPULATOR_H
#pragma once
#include <MCore/Source/AABB.h>
#include <MCore/Source/Vector.h>
@@ -111,6 +110,3 @@ namespace MCommon
bool m_zAxisVisible;
};
} // namespace MCommon
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_GBUFFER_H
#define __RENDERGL_GBUFFER_H
#pragma once
// include required headers
#include <MCore/Source/StandardHeaders.h>
@@ -76,6 +75,3 @@ namespace RenderGL
RenderTexture* m_renderTargetE; /**< Render target with width and height divided by four. */
};
} // namespace RenderGL
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __OPENGLRENDERUTIL_H
#define __OPENGLRENDERUTIL_H
#pragma once
#include "RenderGLConfig.h"
#include "../../Common/RenderUtil.h"
@@ -114,6 +113,3 @@ namespace RenderGL
uint32 m_maxNumTextures;
};
} // namespace RenderGL
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_GLSLSHADER_H
#define __RENDERGL_GLSLSHADER_H
#pragma once
#include <AzCore/std/string/string.h>
#include <AzCore/IO/Path/Path.h>
@@ -96,7 +95,4 @@ namespace RenderGL
uint32 m_textureUnit;
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_GRAPHICSMANAGER__H
#define __RENDERGL_GRAPHICSMANAGER__H
#pragma once
#include <AzCore/IO/Path/Path.h>
#include <MCore/Source/StandardHeaders.h>
@@ -198,6 +197,4 @@ namespace RenderGL
};
GraphicsManager* GetGraphicsManager();
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_INDEXBUFFER_H
#define __RENDERGL_INDEXBUFFER_H
#pragma once
#include "VertexBuffer.h"
@@ -51,6 +50,4 @@ namespace RenderGL
bool GetIsSuccess();
bool GetHasError();
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_MATERIAL_H
#define __RENDERGL_MATERIAL_H
#pragma once
#include <AzCore/Math/Vector2.h>
#include <MCore/Source/StandardHeaders.h>
@@ -105,6 +104,4 @@ namespace RenderGL
GLActor* m_actor;
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_POSTPROCESS_SHADER_H
#define __RENDERGL_POSTPROCESS_SHADER_H
#pragma once
#include <AzCore/IO/Path/Path_fwd.h>
#include "GLSLShader.h"
@@ -38,6 +37,4 @@ namespace RenderGL
RenderTexture* m_rt;
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_CONFIG_H
#define __RENDERGL_CONFIG_H
#pragma once
#include <MCore/Source/StandardHeaders.h>
@@ -28,6 +27,3 @@ enum
{
MEMCATEGORY_RENDERING = 997
};
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_RENDERTEXTURE_H
#define __RENDERGL_RENDERTEXTURE_H
#pragma once
#include "TextureCache.h"
#include <MCore/Source/Color.h>
@@ -66,6 +65,4 @@ namespace RenderGL
AZ::u32 m_frameBuffer;
AZ::u32 m_depthBuffer;
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_SHADER__H
#define __RENDERGL_SHADER__H
#pragma once
#include <MCore/Source/Color.h>
#include "RenderGLConfig.h"
@@ -51,6 +50,4 @@ namespace RenderGL
virtual void SetUniform(const char* name, Texture* texture) = 0;
virtual void SetUniform(const char* name, const float* values, uint32 numFloats) = 0;
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_STANDARD_MATERIAL_H
#define __RENDERGL_STANDARD_MATERIAL_H
#pragma once
#include <AzCore/Math/Transform.h>
#include <EMotionFX/Source/StandardMaterial.h>
@@ -54,6 +53,3 @@ namespace RenderGL
Texture* m_normalMap;
};
} // namespace RenderGL
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_TEXTURECACHE_H
#define __RENDERGL_TEXTURECACHE_H
#pragma once
#include <AzCore/std/string/string.h>
#include <AzCore/std/containers/vector.h>
@@ -76,7 +75,4 @@ namespace RenderGL
Texture* m_whiteTexture;
Texture* m_defaultNormalTexture;
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_VERTEXBUFFER_H
#define __RENDERGL_VERTEXBUFFER_H
#pragma once
#include "RenderGLConfig.h"
#include <MCore/Source/StandardHeaders.h>
@@ -66,5 +65,3 @@ namespace RenderGL
bool GetHasError();
};
} // namespace RenderGL
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_GLACTOR_H
#define __RENDERGL_GLACTOR_H
#pragma once
#include "RenderGLConfig.h"
#include "VertexBuffer.h"
@@ -99,6 +98,4 @@ namespace RenderGL
void Delete() override;
};
}
#endif
} // namespace RenderGL
@@ -6,8 +6,7 @@
*
*/
#ifndef __RENDERGL_SHADERCACHE__H
#define __RENDERGL_SHADERCACHE__H
#pragma once
#include "Shader.h"
#include <AzCore/std/string/string.h>
@@ -45,5 +44,3 @@ namespace RenderGL
AZStd::vector<Entry> m_entries; // the shader cache entries
};
} // namespace RenderGL
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_EMSTUDIOCONFIG_H
#define __EMSTUDIO_EMSTUDIOCONFIG_H
#pragma once
#include <QString>
@@ -31,5 +30,3 @@ enum
};
#define SHOW_REALTIMEINTERFACE_PERFORMANCEINFO
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_EMSTUDIOCORE_H
#define __EMSTUDIO_EMSTUDIOCORE_H
#pragma once
// include all headers
#include "EMStudioConfig.h"
@@ -16,5 +15,3 @@
#include "PluginManager.h"
#include "EMStudioPlugin.h"
#include "LayoutManager.h"
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_EMSTUDIOPLUGIN_H
#define __EMSTUDIO_EMSTUDIOPLUGIN_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -127,5 +126,3 @@ namespace EMStudio
virtual void AddWindowMenuEntries([[maybe_unused]] QMenu* parent) { }
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_INVISIBLEPLUGIN_H
#define __EMSTUDIO_INVISIBLEPLUGIN_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -41,5 +40,3 @@ namespace EMStudio
void CreateBaseInterface(const char* objectName) override { MCORE_UNUSED(objectName); }
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_NODESELECTIONWINDOW_H
#define __EMSTUDIO_NODESELECTIONWINDOW_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -57,5 +56,3 @@ namespace EMStudio
bool m_accepted;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_PLUGINMANAGER_H
#define __EMSTUDIO_PLUGINMANAGER_H
#pragma once
#include <AzCore/std/typetraits/conditional.h>
#include <AzCore/std/typetraits/is_convertible.h>
@@ -68,5 +67,3 @@ namespace EMStudio
void UnloadPlugins();
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MCOMMON_MANIPULATORCALLBACKS_H
#define __MCOMMON_MANIPULATORCALLBACKS_H
#pragma once
// include the Core system
#include "../EMStudioConfig.h"
@@ -142,7 +141,4 @@ namespace EMStudio
bool GetResetFollowMode() const override { return true; }
};
} // namespace MCommon
#endif
} // namespace EMStudio
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_RENDERPLUGINLAYOUTS_H
#define __EMSTUDIO_RENDERPLUGINLAYOUTS_H
#pragma once
// include the required headers
#include "RenderPlugin.h"
@@ -176,6 +175,3 @@ namespace EMStudio
// register all available layouts (this will be automatically called inside the RenderPlugin's constructor)
void EMSTUDIO_API RegisterRenderPluginLayouts(RenderPlugin* renderPlugin);
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_RENDERUPDATECALLBACK_H
#define __EMSTUDIO_RENDERUPDATECALLBACK_H
#pragma once
#include "../EMStudioConfig.h"
#include <EMotionFX/Source/ActorInstance.h>
@@ -38,6 +37,3 @@ namespace EMStudio
RenderPlugin* m_plugin;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_TOOLBARPLUGIN_H
#define __EMSTUDIO_TOOLBARPLUGIN_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -59,5 +58,3 @@ namespace EMStudio
QPointer<QToolBar> m_bar;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_GLWIDGET_H
#define __EMSTUDIO_GLWIDGET_H
#pragma once
#if !defined(Q_MOC_RUN)
#include "../RenderPluginsConfig.h"
@@ -84,6 +83,3 @@ namespace EMStudio
AZ::Debug::Timer m_perfTimer;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_RENDERPLUGINSCONFIG_H
#define __EMSTUDIO_RENDERPLUGINSCONFIG_H
#pragma once
#include <MCore/Source/StandardHeaders.h>
@@ -27,5 +26,3 @@ enum
{
MEMCATEGORY_RENDERPLUGIN = 993
};
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_ANIMGRAPHPLUGIN_H
#define __EMSTUDIO_ANIMGRAPHPLUGIN_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -320,6 +319,3 @@ namespace EMStudio
void UpdateWindowActionsCheckState();
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_BENDSETUPINSTANCEDEBUGEVENTHANDLER_H
#define __EMSTUDIO_BENDSETUPINSTANCEDEBUGEVENTHANDLER_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -45,5 +44,3 @@ namespace EMStudio
private:
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __GAMECONTROLLER_H
#define __GAMECONTROLLER_H
#pragma once
// include the required headers
@@ -157,5 +156,3 @@ private:
};
#endif
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_GAMECONTROLLERWINDOW_H
#define __EMSTUDIO_GAMECONTROLLERWINDOW_H
#pragma once
#if !defined(Q_MOC_RUN)
#include "../StandardPluginsConfig.h"
@@ -190,5 +189,3 @@ namespace EMStudio
void AutoSelectGameController();
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_GRAPHWIDGETCALLBACK_H
#define __EMSTUDIO_GRAPHWIDGETCALLBACK_H
#pragma once
// include required headers
#include <MCore/Source/StandardHeaders.h>
@@ -36,5 +35,3 @@ namespace EMStudio
NodeGraphWidget* m_graphWidget;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_ATTACHMENTNODESWINDOW_H
#define __EMSTUDIO_ATTACHMENTNODESWINDOW_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -80,6 +79,3 @@ namespace EMStudio
QToolButton* m_removeNodesButton;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_ATTACHMENTSHIERARCHYWINDOW_H
#define __EMSTUDIO_ATTACHMENTSHIERARCHYWINDOW_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -42,6 +41,3 @@ namespace EMStudio
QTreeWidget* m_hierarchy;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_ATTACHMENTSPLUGIN_H
#define __EMSTUDIO_ATTACHMENTSPLUGIN_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -91,6 +90,3 @@ namespace EMStudio
AttachmentNodesWindow* m_attachmentNodesWindow;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_LOGWINDOWCALLBACK_H
#define __EMSTUDIO_LOGWINDOWCALLBACK_H
#pragma once
#if !defined(Q_MOC_RUN)
#include "../StandardPluginsConfig.h"
@@ -78,5 +77,3 @@ namespace EMStudio
} // namespace EMStudio
Q_DECLARE_METATYPE(MCore::LogCallback::ELogLevel)
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_LOGWINDOWPLUGIN_H
#define __EMSTUDIO_LOGWINDOWPLUGIN_H
#pragma once
#if !defined(Q_MOC_RUN)
#include <MCore/Source/LogManager.h>
@@ -65,5 +64,3 @@ namespace EMStudio
AzQtComponents::FilteredSearchWidget* m_searchWidget;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_MOTIONEXTRACTIONWINDOW_H
#define __EMSTUDIO_MOTIONEXTRACTIONWINDOW_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -88,6 +87,3 @@ namespace EMStudio
void CreateWarningWidget();
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_MOTIONPROPERTIESWINDOW_H
#define __EMSTUDIO_MOTIONPROPERTIESWINDOW_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -48,6 +47,3 @@ namespace EMStudio
void FinalizeSubProperties();
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_MOTIONRETARGETINGWINDOW_H
#define __EMSTUDIO_MOTIONRETARGETINGWINDOW_H
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
@@ -52,6 +51,3 @@ namespace EMStudio
CommandSystem::SelectionList m_selectionList;
};
} // namespace EMStudio
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __EMSTUDIO_STANDARDPLUGINSCONFIG_H
#define __EMSTUDIO_STANDARDPLUGINSCONFIG_H
#pragma once
// include the EMotion FX config and mem categories on default
#include <EMotionFX/Source/EMotionFXConfig.h>
@@ -32,5 +31,3 @@ enum
MEMCATEGORY_STANDARDPLUGINS_ANIMGRAPH = 1001,
MEMCATEGORY_STANDARDPLUGINS_RESEARCH = 1002
};
#endif
@@ -6,8 +6,7 @@
*
*/
#ifndef __MYSTICQT_MANAGER_H
#define __MYSTICQT_MANAGER_H
#pragma once
// include required files
#if !defined(Q_MOC_RUN)
@@ -91,5 +90,3 @@ namespace MysticQt
MCORE_INLINE const AZStd::string& GetAppDir() { return gMysticQtManager->GetAppDir(); }
MCORE_INLINE const AZStd::string& GetDataDir() { return gMysticQtManager->GetDataDir(); }
} // namespace MysticQt
#endif