static void Render() { // LONG lines = ReadLineCounter(); SetupLines(frameCount * 16); SetupTexture(colors[active], frameCount); // Log("twister: %ld\n", ReadLineCounter() - lines); WaitVBlank(); CopListActivate(cp[active]); active ^= 1; }
void CPointsPart::SetupNodes() { ClearNodes(); switch (m_render_mode) { case ERenderMode::POINTS: SetupPoints(); break; case ERenderMode::OPEN_LINE: SetupLines(m_points.size() - 1); break; case ERenderMode::CLOSED_LINE: SetupLines(m_points.size()); break; default: assert(false); break; } IRenderPart::Init(); __todo() //the sets that init does are needed since the nodes are recreated when the points are changed }