-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay.h
44 lines (34 loc) · 1.21 KB
/
overlay.h
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
#ifndef HEADER_OVERLAY
#define HEADER_OVERLAY
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <math.h>
#include <stdlib.h>
#include <stdbool.h>
#include <load_shader.h>
#include <common.h>
#include <draw_text.h>
struct OverlaySettings{
uint8_t sizeFactor;
ColorRGBf backgroundColor;
ColorRGBf foregroundColor;
Side side;
};
typedef struct OverlaySettings OverlaySettings;
GLFWwindow* createOverlayWindow(GLFWmonitor* monitor, OverlaySettings* settings);
void drawOverlayBackground();
GLuint compileOverlayBackground();
void createOverlayBackground(UsableShaderData* shaderData);
void drawOverlayWheel();
GLuint compileOverlayWheel();
void createOverlayWheel(UsableShaderData* shaderData);
void drawOverlayScroll();
GLuint compileOverlayScroll();
void createOverlayScroll(UsableShaderData* shaderData);
void drawOverlayKnob();
GLuint compileOverlayScroll();
void createOverlayKnob(UsableShaderData* shaderData);
//void drawOverlay(GLFWwindow* overlayWindow, OverlaySettings* settings, UsableShaderData shaders[], GLuint shadersCount);
DrawableText createDrawableTextWheelUsingAtlas(wchar_t * text, Atlas* atlas, float x, float y, float sx, float sy, float sizew, float sizeh);
#endif