Mercurial > hg > opencollidoscope
comparison CollidoscopeApp/src/Wave.cpp @ 3:7fb593d53361
added comments
author | Fiore Martin <f.martin@qmul.ac.uk> |
---|---|
date | Tue, 12 Jul 2016 18:29:38 +0200 |
parents | 02467299402e |
children | ab6db404403a |
comparison
equal
deleted
inserted
replaced
2:dd889fff8423 | 3:7fb593d53361 |
---|---|
94 /* scale the wave to fit the window */ | 94 /* scale the wave to fit the window */ |
95 gl::pushModelView(); | 95 gl::pushModelView(); |
96 | 96 |
97 | 97 |
98 const float wavePixelLen = ( mNumChunks * ( 2 + Chunk::kWidth ) ); | 98 const float wavePixelLen = ( mNumChunks * ( 2 + Chunk::kWidth ) ); |
99 /* scale the x-axis for the wave to fit the window */ | 99 /* scale the x-axis for the wave to fit the window precisely */ |
100 gl::scale( ((float)di.getWindowWidth() ) / wavePixelLen , 1.0f); | 100 gl::scale( ((float)di.getWindowWidth() ) / wavePixelLen , 1.0f); |
101 /* draw the chunks */ | 101 /* draw the chunks */ |
102 if (mSelection.isNull()){ | 102 if (mSelection.isNull()){ |
103 /* no selection: all chunks the same color */ | 103 /* no selection: all chunks the same color */ |
104 gl::color(mColor); | 104 gl::color(mColor); |