mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
27 lines
633 B
C
27 lines
633 B
C
|
#pragma once
|
||
|
|
||
|
#include "lc_context.h"
|
||
|
|
||
|
class lcViewManipulator
|
||
|
{
|
||
|
public:
|
||
|
lcViewManipulator(lcView* View);
|
||
|
|
||
|
void DrawSelectMove(lcTrackButton TrackButton, lcTrackTool TrackTool);
|
||
|
void DrawRotate(lcTrackButton TrackButton, lcTrackTool TrackTool);
|
||
|
|
||
|
lcTrackTool UpdateSelectMove();
|
||
|
lcTrackTool UpdateRotate();
|
||
|
|
||
|
static void CreateResources(lcContext* Context);
|
||
|
static void DestroyResources(lcContext* Context);
|
||
|
|
||
|
protected:
|
||
|
static bool IsTrackToolAllowed(lcTrackTool TrackTool, quint32 AllowedTransforms);
|
||
|
|
||
|
lcView* mView = nullptr;
|
||
|
|
||
|
static lcVertexBuffer mRotateMoveVertexBuffer;
|
||
|
static lcIndexBuffer mRotateMoveIndexBuffer;
|
||
|
};
|