-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunspritable.h
61 lines (41 loc) · 1.09 KB
/
unspritable.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include <stdio.h>
#include "include/GL/freeglut.h"
#include "include/GLFW/glfw3.h"
#include <stdlib.h>
typedef unsigned char GGD_Pixel;
typedef struct {
unsigned char r;
unsigned char g;
unsigned char b;
} pixelData;
typedef struct {
int pointSize;
int width;
int height;
int posX;
int posY;
pixelData *matrix; // The matrix where shit is drawn
} matrix;
matrix specs;
typedef struct {
int width;
int height;
char* name;
GLFWwindow* window;
} screen;
GLuint createTexture(matrix* w);
void setActiveMatrix(matrix* m);
void clearBG(pixelData colorm);
void plot(int x, int y, pixelData color);
void DS(int x, int y, int width, int height, pixelData color);
void DL(int x0, int y0, int x1, int y1, int thickness, pixelData color);
void DC(int centerX, int centerY, int radius, pixelData c);
//void drawFPS(int x, int y, int FPS);
int getKey(char letter);
void setupScreen(screen* window);
void drawTexture(matrix m);
pixelData* createMatrix(matrix m);
void terminateScreen(screen* s, matrix* m);
int windowClosed(screen* window);
void updateScreen(screen* w, matrix *m);