MoravaEngine/src/LearnOpenGL/camera.h
// Processes input received from any keyboard-like input system. Accepts input parameter in the form of camera defined ENUM (to abstract it from windowing systems)
Processes input received from any keyboard-like input system. Accepts input parameter in the form of camera defined ENUM (to abstract it from windowing systems)
Processes input received from any keyboard - like input system . Accepts input parameter in the form of camera defined ENUM ( to abstract it from windowing systems )
void ProcessKeyboard(Camera_Movement direction, float deltaTime)
	{
		float velocity = MovementSpeed * deltaTime;
		if (direction == FORWARD)
			Position += Front * velocity;
		if (direction == BACKWARD)
			Position -= Front * velocity;
		if (direction == LEFT)
			Position -= Right * velocity;
		if (direction == RIGHT)
			Position += Right * velocity;
		if (direction == UP)
			Position += Up * velocity;
		if (direction == DOWN)
			Position -= Up * velocity;
	}
void ProcessKeyboard ( Camera_Movement direction , float deltaTime ) { float velocity = MovementSpeed * deltaTime ; if ( direction == FORWARD ) Position += Front * velocity ; if ( direction == BACKWARD ) Position -= Front * velocity ; if ( direction == LEFT ) Position -= Right * velocity ; if ( direction == RIGHT ) Position += Right * velocity ; if ( direction == UP ) Position += Up * velocity ; if ( direction == DOWN ) Position -= Up * velocity ; }
Processes input received from any keyboard-like input system.
Processes input received from any keyboard - like input system .