[EDIT] code style guide finished
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "Camera.h"
|
||||
#include "camera.h"
|
||||
|
||||
namespace entities
|
||||
{
|
||||
@@ -7,26 +7,26 @@ namespace entities
|
||||
rotation(rotation)
|
||||
{}
|
||||
|
||||
void Camera::move(GLFWwindow* window)
|
||||
void Camera::Move(GLFWwindow* window)
|
||||
{
|
||||
if (glfwGetKey(window, GLFW_KEY_W) == GLFW_PRESS)
|
||||
{
|
||||
position.z -= speed;
|
||||
position.z -= SPEED;
|
||||
}
|
||||
|
||||
if (glfwGetKey(window, GLFW_KEY_S) == GLFW_PRESS)
|
||||
{
|
||||
position.z += speed;
|
||||
position.z += SPEED;
|
||||
}
|
||||
|
||||
if (glfwGetKey(window, GLFW_KEY_D) == GLFW_PRESS)
|
||||
{
|
||||
position.x += speed;
|
||||
position.x += SPEED;
|
||||
}
|
||||
|
||||
if (glfwGetKey(window, GLFW_KEY_A) == GLFW_PRESS)
|
||||
{
|
||||
position.x -= speed;
|
||||
position.x -= SPEED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user