-
Notifications
You must be signed in to change notification settings - Fork 0
/
Texture.hpp
68 lines (48 loc) · 1.01 KB
/
Texture.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
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// Texture.hpp
// OpenGL
//
// Created by Andrew Diggs on 10/2/22.
//
#ifndef Texture_hpp
#define Texture_hpp
#define IW 64
#include <stdio.h>
#include "Render.hpp"
#include "My_Types.hpp"
class Atom;
class Texture{
private:
unsigned int m_ID;
unsigned int m_TBO;
unsigned int m_TEX_ID;
GLenum m_type = GL_TEXTURE_2D;
GLubyte RGB_Data[IW][IW][3];
GLubyte RGBA_Data[IW][IW][4];
GLfloat TBData[500][3];
public:
Texture();
Texture(Atom* ats);
~Texture();
void bind(int layer);
void Checker_Board();
void Noise();
void Off_set(Atom* ats);
};
class Rand{
public:
Rand(const Rand&) = delete;
static Rand& Get();
double r_u_d(double, double);
int r_uni_int(int, int);
int rand_color();
double rand_normal_color();
double return_rate();
double escape_rate();
double get_time(double);
void set_temp(float temp);
private:
Rand() {}
float m_temp;
};
#endif /* Texture_hpp */