Commit 05e9f5d8 authored by Swampert-zhi's avatar Swampert-zhi
Browse files

add exercise_0

parent 709773ba
......@@ -40,6 +40,7 @@ void DummySim::updateRenderGeometry() {
bool DummySim::advance() {
// do next step of some color animation
// update the color
int speed = 60;
int decColor = (m_step / speed) % 3;
int incColor = (decColor + 1) % 3;
......@@ -49,6 +50,9 @@ bool DummySim::advance() {
m_C(i, incColor) = (m_C(i, incColor) * speed + 1) / speed;
}
// TODO: update m_V (and m_F maybe) here
// advance step
m_step++;
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment