light/Mirror/src/EditorLayer.h
Light b1e60d08b7 Edit(Mirror): AssetBrowserPanel
- Renamed ContentBrowserPanel -> AssetBrowserPanel
- AssetBrowserPanel now shows directory/txt/image files
      with image buttons
2022-03-07 20:01:44 +03:30

44 lines
881 B
C++

#pragma once
#include "Panels/ContentBrowser.h"
#include "Panels/PropertiesPanel.h"
#include "Panels/SceneHierarchyPanel.h"
#include <LightEngine.h>
#include <glm/gtc/matrix_transform.hpp>
namespace Light {
class EditorLayer: public Layer
{
private:
std::string m_SceneDir;
// #todo: add camera controller class to the engine
glm::vec2 m_Direction;
float m_Speed = 1000.0f;
Ref<Scene> m_Scene;
Ref<SceneHierarchyPanel> m_SceneHierarchyPanel;
Ref<PropertiesPanel> m_PropertiesPanel;
Ref<AssetBrowserPanel> m_ContentBrowserPanel;
Ref<Framebuffer> m_Framebuffer;
Entity m_CameraEntity;
ImVec2 m_AvailableContentRegionPrev;
public:
EditorLayer(const std::string& name, const std::vector<std::string>& args);
~EditorLayer();
void OnUpdate(float deltaTime) override;
void OnRender() override;
void OnUserInterfaceUpdate() override;
};
} // namespace Light