-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui.h
More file actions
30 lines (22 loc) · 707 Bytes
/
ui.h
File metadata and controls
30 lines (22 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "world.h"
class UI
{
public:
UI(const Vortex2D::Renderer::Device& device, World& world, const glm::ivec2& size, float scale);
void Update(Vortex2D::Renderer::RenderTarget& target);
private:
void RenderFluid();
void CreateShape();
void ResizeShape(Vortex2D::Renderer::RenderTarget& target);
void MoveShape(Entity& entity);
const Vortex2D::Renderer::Device& mDevice;
glm::ivec2 mSize;
float mScale;
World& mWorld;
Entity* mCurrentEntity;
ShapeType mShapeType;
std::unique_ptr<Vortex2D::Renderer::Shape> mBuildShape;
Vortex2D::Renderer::RenderCommand mBuildCmd;
Vortex2D::Renderer::Rectangle mForce;
std::shared_ptr<Vortex2D::Renderer::IntRectangle> mFluid;
};