-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheightMap.h
More file actions
37 lines (37 loc) · 802 Bytes
/
Copy pathheightMap.h
File metadata and controls
37 lines (37 loc) · 802 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
#include"Texture.h"
#include "Render.h"
#define GLM_SWIZZLE
using namespace glm;
class HeightMap {
public:
HeightMap(char* filename,float,float,float);
float getHeight(float x, float y);
void gravity(FbxEntity &a,float);
void gravity(StaticObject &a,float);
void gravity(FirstMan &firstMan,float);
GLuint getProgram();
GLuint getTexFbo();
mat4 getVMatrix();
mat4 getVMatrix(vec3* eyeposition,vec3 *forwardVector,vec3* upVector);
mat4 getPMatrix();
mat4 getVPMatrix();
void startFbo();
void endFbo();
void reshape(float width, float height);
private:
unsigned char *data;
int width;
int height;
unsigned char *data2;
int width2;
int height2;
float gravityValue;
float mapWidth;
float mapHeigh;
GLuint Fbo;
GLuint TexFbo;
GLuint Rbo;
GLuint program;
mat4 Look;
mat4 Othro;
};