| 2008 | } |
| 2009 | } |
| 2010 | void DrawNodeJellyFishTest::DrawFrame() |
| 2011 | { |
| 2012 | static float t = 0; |
| 2013 | float ii = 0; |
| 2014 | float px, py; |
| 2015 | px = 0; |
| 2016 | py = 0; |
| 2017 | t += M_PI / 240.0; |
| 2018 | |
| 2019 | for (int i = 0; i < NUM_POINTS - 1; i++) |
| 2020 | { |
| 2021 | ii = i; |
| 2022 | CalculatePoint(ii, ii / 235.0, t, px, py); |
| 2023 | dots[i] = Vec2(px + 150, py + 50); |
| 2024 | } |
| 2025 | drawNode->drawPoints(dots, NUM_POINTS - 1, Color4F::GREEN); |
| 2026 | UpdateJellyPoints(); |
| 2027 | drawNode->drawPoints(dots, NUM_POINTS - 1, Color4F::WHITE); |
| 2028 | } |
| 2029 | |
| 2030 | DrawNodeJellyFishTest::DrawNodeJellyFishTest() |
| 2031 | { |
nothing calls this directly
no test coverage detected