| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
- // Please see LICENSE.md in repository root for license information
- // https://github.com/AtomicGameEngine/AtomicGameEngine
- #pragma once
- #include <TurboBadger/tb_widgets_common.h>
- #include "ResourceEditor.h"
- using namespace Atomic;
- using namespace tb;
- namespace Atomic
- {
- class Scene;
- class Node;
- class Camera;
- }
- namespace AtomicEditor
- {
- class JSAutocomplete;
- class ModelResourceEditor: public ResourceEditor
- {
- OBJECT(ModelResourceEditor);
- public:
- ModelResourceEditor(Context* context, const String& fullpath, TBTabContainer* container);
- virtual ~ModelResourceEditor();
- bool OnEvent(const TBWidgetEvent &ev);
- void HandleUpdate(StringHash eventType, VariantMap& eventData);
- private:
- void MoveCamera(float timeStep);
- SharedPtr<Scene> scene_;
- SharedPtr<Node> cameraNode_;
- //SharedPtr<View3D> view3D_;
- SharedPtr<Camera> camera_;
- float yaw_;
- float pitch_;
- TBLayout* layout_;
- TBContainer* view3DContainer_;
- WeakPtr<Node> modelNode_;
- };
- }
|