The-NodeBox-Generator/src/Editor.hpp

33 lines
657 B
C++

#ifndef EDITOR_HPP_INCLUDED
#define EDITOR_HPP_INCLUDED
#include "common.hpp"
#include "EditorState.hpp"
#include "Project.hpp"
class Editor : public IEventReceiver
{
public:
Editor();
bool run(IrrlichtDevice *irr_device, Configuration *conf);
virtual bool OnEvent(const SEvent &event);
EditorState *state;
irr::IrrlichtDevice *device;
void recreateCameras();
private:
// Helper functions
int currentWindow;
ISceneNode *target;
ISceneNode *pivot;
ICameraSceneNode *camera[4];
IMeshSceneNode *plane;
void LoadScene();
void viewportTick(Viewport vp, rect<s32> rect, bool mousehit);
int viewport_contextmenu;
bool click_handled;
};
#endif