-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBoothUI.hpp
55 lines (46 loc) · 1.14 KB
/
BoothUI.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//#pragma once
#ifndef __BOOTH__UI_HPP__
#define __BOOTH__UI_HPP__
#include "Shader.hpp"
#include "Rectangle.hpp"
#include "CaptureCam.hpp"
#include <vector>
#include <memory>
#include "Effects.hpp"
const float white[] = {1.0f,1.0f,1.0f};
const float red[] = {1.0f,0.0f,0.0f};
const float blue[] = {0.0f,0.0f,1.0f};
const float teal[] = {0.0f,1.0f,1.0f};
const float green[] = {0.0f,1.0f,0.0f};
const int WIDTH = 800;
const int HEIGHT = 600;
const int ROW_REC = 3;
const int COL_REC = 3;
class BoothUI
{
public:
CaptureCam cc;
BoothUI();
~BoothUI(void);
void render(void);
void initialize(void);
void windowResized(int width, int height);
int getUiPositionHandle();
int getUiColorHandle();
std::unique_ptr<Effects> EffectGenerator(int i);
private:
Shader uiShader;
int useColorHandle;
int uiPositionHandle;
int uiTextureHandle;
int uiTextureSampler;
int uiResolution;
int uicolorHandle;
float resolution[2];
//int aTexture;
int width,height;
glm::mat4 mVMatrix;
std::vector< std::unique_ptr<QUAD_DEF::Rectangle> > layout;
cv::Mat cur_mat;
};
#endif //__BOOTH__UI_HPP__