6cb53891ed
* load and save camera options Signed-off-by: rhhong <rhhong@amazon.com> * CR feedback Signed-off-by: rhhong <rhhong@amazon.com>
39 lines
1005 B
C++
39 lines
1005 B
C++
/*
|
|
* 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
|
|
|
|
#if !defined(Q_MOC_RUN)
|
|
#include <QAction>
|
|
#include <QToolBar>
|
|
#include <QMenu>
|
|
#endif
|
|
|
|
#include <Integration/Rendering/RenderFlag.h>
|
|
|
|
namespace EMStudio
|
|
{
|
|
class AnimViewportToolBar : public QToolBar
|
|
{
|
|
public:
|
|
AnimViewportToolBar(QWidget* parent = nullptr);
|
|
~AnimViewportToolBar();
|
|
|
|
void SetRenderFlags(EMotionFX::ActorRenderFlagBitset renderFlags);
|
|
void LoadSettings();
|
|
void SaveSettings();
|
|
|
|
private:
|
|
void CreateViewOptionEntry(
|
|
QMenu* menu, const char* menuEntryName, uint32_t actionIndex, bool visible = true, char* iconFileName = nullptr);
|
|
|
|
QAction* m_actions[EMotionFX::ActorRenderFlag::NUM_RENDERFLAGS] = { nullptr };
|
|
QAction* m_followCharacterAction = nullptr;
|
|
};
|
|
}
|