Fixed the god-awful indentation

This commit is contained in:
mathusummut
2018-05-06 00:01:36 +02:00
parent 643e3820f5
commit 35b7b1f1a6
459 changed files with 204893 additions and 217545 deletions

View File

@@ -17,39 +17,47 @@
#include <map>
#include "leak_dumper.h"
namespace Shared{ namespace Graphics{
namespace Shared {
namespace Graphics {
// =====================================================
// class InterpolationData
// =====================================================
// =====================================================
// class InterpolationData
// =====================================================
class InterpolationData{
private:
const Mesh *mesh;
class InterpolationData {
private:
const Mesh *mesh;
Vec3f *vertices;
Vec3f *normals;
Vec3f *vertices;
Vec3f *normals;
int raw_frame_ofs;
int raw_frame_ofs;
static bool enableInterpolation;
void update(const Vec3f* src, Vec3f* &dest, float t, bool cycle);
static bool enableInterpolation;
public:
InterpolationData(const Mesh *mesh);
~InterpolationData();
void update(const Vec3f* src, Vec3f* &dest, float t, bool cycle);
static void setEnableInterpolation(bool enabled) { enableInterpolation = enabled; }
public:
InterpolationData(const Mesh *mesh);
~InterpolationData();
const Vec3f *getVertices() const {return !vertices || !enableInterpolation? mesh->getVertices()+raw_frame_ofs: vertices;}
const Vec3f *getNormals() const {return !normals || !enableInterpolation? mesh->getNormals()+raw_frame_ofs: normals;}
void update(float t, bool cycle);
void updateVertices(float t, bool cycle);
void updateNormals(float t, bool cycle);
};
static void setEnableInterpolation(bool enabled) {
enableInterpolation = enabled;
}
}}//end namespace
const Vec3f *getVertices() const {
return !vertices || !enableInterpolation ? mesh->getVertices() + raw_frame_ofs : vertices;
}
const Vec3f *getNormals() const {
return !normals || !enableInterpolation ? mesh->getNormals() + raw_frame_ofs : normals;
}
void update(float t, bool cycle);
void updateVertices(float t, bool cycle);
void updateNormals(float t, bool cycle);
};
}
}//end namespace
#endif