-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUI.hpp
More file actions
27 lines (20 loc) · 734 Bytes
/
Copy pathUI.hpp
File metadata and controls
27 lines (20 loc) · 734 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
#pragma once
#include <string>
#include <vector>
#include <map>
#include "vertex.h"
#include "textureManager.hpp"
#include "renderer.hpp"
class UI
{
public:
glm::vec3 position;
std::vector<Vertex> vertices;
int id;
TextureManager textureManager;
bool hide = false;
UI(Renderer &renderer, int *nextRenderingId, glm::vec3 position) : position(position), id((*nextRenderingId)++), textureManager(renderer.bufferManager, renderer) {};
virtual void initGraphics(Renderer &renderer) = 0;
virtual void draw(Renderer *renderer, int currentFrame, glm::mat4 transformation, glm::mat4 view, glm::mat4 projectionMatrix, VkCommandBuffer commandBuffer) = 0;
virtual void cleanup(VkDevice device, Renderer &renderer) = 0;
};