uint8_t CU8GLcd::GetPageCount() { uint8_t count; for (count = 0; GetDrawFunction(&_pagedef[count].draw) != NULL; count++) { } return count; }
unsigned long CU8GLcd::Draw(EDrawType draw) { if (draw==DrawFirst) { SetDefaultPage(); } DrawFunction fnc = GetDrawFunction(&_pagedef[GetPage()].draw); return DrawLoop(fnc); }
void display() /*****************************************************************************/ { static bool firstTime = true; if(firstTime) { ClearScreen(); firstTime = false; } GetDrawFunction()(); glutSwapBuffers(); }