mirror of
https://github.com/leozide/leocad
synced 2025-01-01 06:19:55 +01:00
25 lines
347 B
C
25 lines
347 B
C
|
#pragma once
|
||
|
|
||
|
#include "lc_math.h"
|
||
|
#include <bitset>
|
||
|
|
||
|
class View;
|
||
|
|
||
|
class lcViewCube
|
||
|
{
|
||
|
public:
|
||
|
lcViewCube(View* View);
|
||
|
|
||
|
void Draw();
|
||
|
bool OnMouseMove();
|
||
|
bool OnLeftButtonUp();
|
||
|
|
||
|
protected:
|
||
|
lcMatrix44 GetViewMatrix() const;
|
||
|
lcMatrix44 GetProjectionMatrix() const;
|
||
|
|
||
|
View* mView;
|
||
|
lcVector3 mIntersection;
|
||
|
std::bitset<6> mIntersectionFlags;
|
||
|
};
|