mirror of
https://github.com/glest/glest-source.git
synced 2025-09-29 08:59:01 +02:00
Fixed the god-awful indentation
This commit is contained in:
@@ -13,41 +13,43 @@
|
||||
|
||||
#include "leak_dumper.h"
|
||||
|
||||
namespace Shared{ namespace Graphics{
|
||||
namespace Shared {
|
||||
namespace Graphics {
|
||||
|
||||
// =====================================================
|
||||
// class Camera
|
||||
// =====================================================
|
||||
// =====================================================
|
||||
// class Camera
|
||||
// =====================================================
|
||||
|
||||
Camera::Camera(){
|
||||
position= Vec3f(0.0f);
|
||||
}
|
||||
Camera::Camera() {
|
||||
position = Vec3f(0.0f);
|
||||
}
|
||||
|
||||
void Camera::moveLocalX(float amount){
|
||||
position= position + orientation.getLocalXAxis()*amount;
|
||||
}
|
||||
void Camera::moveLocalX(float amount) {
|
||||
position = position + orientation.getLocalXAxis()*amount;
|
||||
}
|
||||
|
||||
void Camera::moveLocalY(float amount){
|
||||
position= position + orientation.getLocalYAxis()*amount;
|
||||
}
|
||||
void Camera::moveLocalY(float amount) {
|
||||
position = position + orientation.getLocalYAxis()*amount;
|
||||
}
|
||||
|
||||
void Camera::moveLocalZ(float amount){
|
||||
position= position + orientation.getLocalZAxis()*amount;
|
||||
}
|
||||
void Camera::moveLocalZ(float amount) {
|
||||
position = position + orientation.getLocalZAxis()*amount;
|
||||
}
|
||||
|
||||
void Camera::addYaw(float amount){
|
||||
Quaternion q(EulerAngles(0, amount, 0));
|
||||
orientation*= q;
|
||||
}
|
||||
void Camera::addYaw(float amount) {
|
||||
Quaternion q(EulerAngles(0, amount, 0));
|
||||
orientation *= q;
|
||||
}
|
||||
|
||||
void Camera::addPitch(float amount){
|
||||
Quaternion q(EulerAngles(amount, 0, 0));
|
||||
orientation*= q;
|
||||
}
|
||||
void Camera::addPitch(float amount) {
|
||||
Quaternion q(EulerAngles(amount, 0, 0));
|
||||
orientation *= q;
|
||||
}
|
||||
|
||||
void Camera::addRoll(float amount){
|
||||
Quaternion q(EulerAngles(0, 0, amount));
|
||||
orientation*= q;
|
||||
}
|
||||
void Camera::addRoll(float amount) {
|
||||
Quaternion q(EulerAngles(0, 0, amount));
|
||||
orientation *= q;
|
||||
}
|
||||
|
||||
}}//end namespace
|
||||
}
|
||||
}//end namespace
|
||||
|
Reference in New Issue
Block a user