-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.h
More file actions
66 lines (57 loc) · 1.34 KB
/
Copy pathinit.h
File metadata and controls
66 lines (57 loc) · 1.34 KB
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
#include <vector>
#include <string>
#include <glm/glm.hpp>
#include <fstream>
#include <sstream>
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <GL/freeglut.h>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#ifndef WEATHER_VISUALIZER_INIT_H
#define WEATHER_VISUALIZER_INIT_H
struct Material {
std::string name;
glm::vec3 diffuse;
glm::vec3 ambient;
glm::vec3 specular;
};
struct View {
glm::mat4 view;
GLint viewUniform;
};
struct Vertex {
glm::vec3 position;
glm::vec3 originalPosition;
glm::vec2 uv;
glm::vec3 normal;
glm::vec3 color;
};
enum ParticleType {
NONE,
RAIN,
SNOW,
HAIL
};
extern std::vector<Vertex> vertices;
extern float fogStartDistance;
extern GLuint program_id;
extern ParticleType particleType;
extern unsigned long sceneSize;
extern unsigned long particleSize;
extern float temperature;
void updateTemp();
void updateFog();
std::string load(const std::string &filename);
GLFWwindow* init_glfw();
void init_glew();
View init_obj_and_shaders(std::vector<Vertex> &vertices, GLuint &vertexBuffer);
void set_snow();
void set_rain();
void set_sun();
void set_hail();
void impactSnow(float x, float z);
void displaySplash(float x, float z, int iter, int &splashIndex);
void deleteCircle3(int splashIndex);
#endif //WEATHER_VISUALIZER_INIT_H