-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCloth.h
More file actions
38 lines (30 loc) · 702 Bytes
/
Cloth.h
File metadata and controls
38 lines (30 loc) · 702 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
/*
* Cloth.h
*
* Created on: 15/10/2014
* Author: sam
*/
#ifndef CLOTH_H_
#define CLOTH_H_
#include "Includes.h"
#include "Particle.h"
#include "Constraint.h"
#include "Triangle.h"
class Cloth {
public:
Cloth(float width, float height, int particleWidth, int particleHeight, float weight, float damping, glm::mat4 transform);
virtual ~Cloth();
void loadTexture(char *filename);
void display(GLenum mode);
void displayConstraints();
void step(float timeStep);
std::vector<Particle> particles;
private:
std::vector<Constraint> constraints;
std::vector<Triangle> triangles;
int particleWidth;
int particleHeight;
bool isTextured;
GLuint textureID;
};
#endif /* CLOTH_H_ */