Mercurial > hg > opencollidoscope
comparison CollidoscopeApp/include/DrawInfo.h @ 7:a4a336624f5a
added some comments
DrawInfo dependency from NUM_WAVES
author | Fiore Martin <f.martin@qmul.ac.uk> |
---|---|
date | Fri, 15 Jul 2016 16:05:34 +0200 |
parents | 75b744078d66 |
children | 4dad0b810f18 |
comparison
equal
deleted
inserted
replaced
6:4c0e82b725d9 | 7:a4a336624f5a |
---|---|
91 * Returns the center position on the y axis of this DrawInfo's the bounding area. | 91 * Returns the center position on the y axis of this DrawInfo's the bounding area. |
92 */ | 92 */ |
93 int32_t getWaveCenterY() const | 93 int32_t getWaveCenterY() const |
94 { | 94 { |
95 if ( mWaveIndex == 0 ) | 95 if ( mWaveIndex == 0 ) |
96 return mWindowHeight * 0.75f + 1; | 96 return mWindowHeight - ( mWindowHeight / ( 2 * NUM_WAVES ) ) + 1; |
97 else | 97 else |
98 return mWindowHeight / (NUM_WAVES * 2); | 98 return mWindowHeight / (NUM_WAVES * 2); |
99 } | 99 } |
100 | 100 |
101 /** | 101 /** |