leocad/common/lc_viewcube.h

30 lines
453 B
C
Raw Normal View History

2018-08-20 05:27:58 +02:00
#pragma once
#include "lc_math.h"
#include <bitset>
class View;
class lcViewCube
{
public:
lcViewCube(View* View);
void Draw();
bool OnMouseMove();
bool OnLeftButtonUp();
bool OnLeftButtonDown();
bool IsDragging() const;
2018-08-20 05:27:58 +02:00
protected:
lcMatrix44 GetViewMatrix() const;
lcMatrix44 GetProjectionMatrix() const;
View* mView;
lcVector3 mIntersection;
std::bitset<6> mIntersectionFlags;
int mMouseDownX;
int mMouseDownY;
bool mMouseDown;
2018-08-20 05:27:58 +02:00
};