PrimeWorldEditor/UI/CModelEditorViewport.h

32 lines
695 B
C
Raw Normal View History

#ifndef CMODELEDITORVIEWPORT_H
#define CMODELEDITORVIEWPORT_H
#include "CBasicViewport.h"
#include <Scene/CModelNode.h>
class CModelEditorViewport : public CBasicViewport
{
public:
enum EDrawMode {
eDrawMesh, eDrawSphere, eDrawSquare
};
private:
EDrawMode mMode;
CModelNode *mpModelNode;
CMaterial *mpActiveMaterial;
CRenderer *mpRenderer;
public:
CModelEditorViewport(QWidget *pParent = 0);
~CModelEditorViewport();
void SetNode(CModelNode *pNode);
void SetActiveMaterial(CMaterial *pMat);
void SetDrawMode(EDrawMode mode);
void SetClearColor(CColor color);
void Paint();
void OnResize();
};
#endif // CMODELEDITORVIEWPORT_H