code refactor
This commit is contained in:
parent
99515f54ee
commit
a545bff119
@ -49,7 +49,7 @@ bool isInBoundaries(glm::vec3 nextPosition) {
|
|||||||
void keyboard(unsigned char key, int x, int y)
|
void keyboard(unsigned char key, int x, int y)
|
||||||
{
|
{
|
||||||
float angleSpeed = 10.f;
|
float angleSpeed = 10.f;
|
||||||
float moveSpeed = 2.0f;
|
float moveSpeed = 2.f;
|
||||||
glm::vec3 nextPosition;
|
glm::vec3 nextPosition;
|
||||||
|
|
||||||
switch (key)
|
switch (key)
|
||||||
@ -336,7 +336,7 @@ int main(int argc, char** argv)
|
|||||||
glutInit(&argc, argv);
|
glutInit(&argc, argv);
|
||||||
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
|
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
|
||||||
glutInitWindowPosition(200, 200);
|
glutInitWindowPosition(200, 200);
|
||||||
glutInitWindowSize(800, 800);
|
glutInitWindowSize(1000, 1000);
|
||||||
glutCreateWindow("Water and shit");
|
glutCreateWindow("Water and shit");
|
||||||
glewInit();
|
glewInit();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user