From d03e6a89fb3f4b23d8defec60af1de767a8b7203 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 14 Mar 2011 11:14:29 -0400 Subject: [PATCH] Got more of them, but not all. Time to move onto a new file I think. --- src/RageTypes.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/RageTypes.h b/src/RageTypes.h index 388a1d1580..9f86c6eb7a 100644 --- a/src/RageTypes.h +++ b/src/RageTypes.h @@ -186,9 +186,9 @@ public: struct RageColor { public: - RageColor() : r(0), g(0), b(0), a(0) {} - explicit RageColor( const float * f ) { r=f[0]; g=f[1]; b=f[2]; a=f[3]; } - RageColor( float r1, float g1, float b1, float a1 ) { r=r1; g=g1; b=b1; a=a1; } + RageColor(): r(0), g(0), b(0), a(0) {} + explicit RageColor( const float * f ): r(f[0]), g(f[1]), b(f[2]), a(f[3]) {} + RageColor( float r1, float g1, float b1, float a1 ): r(r1), g(g1), b(b1), a(a1) {} // casting operator float* () { return &r; }; @@ -305,8 +305,8 @@ namespace StepMania class Rect { public: - Rect() {}; - Rect(T l, T t, T r, T b) { left = l, top = t, right = r, bottom = b; }; + Rect(): left(0), top(0), right(0), bottom(0) {} + Rect(T l, T t, T r, T b): left(l), top(t), right(r), bottom(b) {} T GetWidth() const { return right-left; }; T GetHeight() const { return bottom-top; }; @@ -349,6 +349,7 @@ struct RageModelVertex // doesn't have color. Relies on material color p(0,0,0), n(0,0,0), t(0,0), + bone(0), TextureMatrixScale(1,1) { } RageVector3 p; // position