MCPcopy Create free account
hub / github.com/axmolengine/axmol / DrawFrame

Method DrawFrame

tests/cpp-tests/Source/DrawNodeTest/DrawNodeTest.cpp:2010–2028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2008 }
2009}
2010void 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
2030DrawNodeJellyFishTest::DrawNodeJellyFishTest()
2031{

Callers

nothing calls this directly

Calls 2

drawPointsMethod · 0.80
Vec2Function · 0.50

Tested by

no test coverage detected