-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwater.h
More file actions
42 lines (27 loc) · 660 Bytes
/
Copy pathwater.h
File metadata and controls
42 lines (27 loc) · 660 Bytes
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
#ifndef WATER_H_SENTRY
#define WATER_H_SENTRY
#include "shaders.h"
#include "mesh.h"
typedef
struct Water
{
MeshData * data;
ShaderProgram * modifySP;
ShaderProgram * drawSP;
GLuint modifyVaoP;
GLuint drawVaoP;
GLuint fboId;
int firstTexture;
GLuint * textureIds;
/* For gen and for draw data */
GLsizei idxCnt;
float dSecondSum;
}
Water;
Water * getWater();
void modifyWaterMesh(Water * water, float dSecond);
void setWaterWave(Water * water);
void drawWater(const Water * water);
void freeWater(Water * water);
void setupWorldUniforms(ShaderProgram * sp, Water * water);
#endif /* WATER_H_SENTRY */