yet another API cleanup
This commit is contained in:
parent
2008f70983
commit
b6b3483a39
9 changed files with 134 additions and 114 deletions
|
@ -32,7 +32,7 @@ int collision(struct chunk chunk, vec3 pos, vec3 dir_temp, int col, int n) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct v3f controlHandler(double cx, double cy, vec3 pos, vec3 dir_temp,
|
||||
struct v3f control_handler(double cx, double cy, vec3 pos, vec3 dir_temp,
|
||||
GLFWwindow *window, struct chunk chunk) {
|
||||
vec3 direction = {cosf(cy) * sinf(cx) * 0.1, sinf(cy) * 0.1,
|
||||
cosf(cy) * cosf(cx) * 0.1};
|
||||
|
@ -70,7 +70,7 @@ struct v3f controlHandler(double cx, double cy, vec3 pos, vec3 dir_temp,
|
|||
int col = 0;
|
||||
for (int a = -2; a < 0; a++) {
|
||||
off[1] = a;
|
||||
col = col || cube_exists(pos[0] + off[0], pos[1] + off[1], pos[2] + off[2],
|
||||
col = col || gen_cube(pos[0] + off[0], pos[1] + off[1], pos[2] + off[2],
|
||||
chunk, 0);
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ struct v3f controlHandler(double cx, double cy, vec3 pos, vec3 dir_temp,
|
|||
col = 0;
|
||||
for (int a = -2; a < 0; a++) {
|
||||
off[1] = a;
|
||||
col = col || cube_exists(pos[0] + off[0], pos[1] + off[1],
|
||||
col = col || gen_cube(pos[0] + off[0], pos[1] + off[1],
|
||||
pos[2] + off[2], chunk, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue