forked from yiming-cai/OursCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtil.cpp
More file actions
29 lines (27 loc) · 663 Bytes
/
Copy pathUtil.cpp
File metadata and controls
29 lines (27 loc) · 663 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
#include "Util.h"
glm::mat4 P;
glm::mat4 V;
GLuint Shader_Geometry;
GLuint Shader_Skybox;
GLuint Shader_Coordinate;
GLuint Shader_Model;
GLuint Shader_SimplePointer;
GLuint Shader_BoundBox;
GLuint Shader_DisplayLight;
GLuint Shader_Water;
GLuint Shader_Particle;
GLuint Shader_Tree;
// use this for optimization of cube drawing only
// check Geometry draw function to find out more
bool bindedCubeVAO;
bool drawingCube;
std::vector<std::string> Util::split(const std::string & s, char delim)
{
std::stringstream ss(s);
std::string item;
std::vector<std::string> tokens;
while (std::getline(ss, item, delim)) {
tokens.push_back(item);
}
return tokens;
}