예제 #1
0
파일: U8GLCD.cpp 프로젝트: aiten/CNCLib
uint8_t CU8GLcd::GetPageCount()
{
    uint8_t count;
    for (count = 0; GetDrawFunction(&_pagedef[count].draw) != NULL; count++)
    {
    }
    return count;
}
예제 #2
0
파일: U8GLCD.cpp 프로젝트: aiten/CNCLib
unsigned long CU8GLcd::Draw(EDrawType draw)
{
    if (draw==DrawFirst)
    {
        SetDefaultPage();
    }

    DrawFunction fnc = GetDrawFunction(&_pagedef[GetPage()].draw);

    return DrawLoop(fnc);
}
예제 #3
0
void display()
/*****************************************************************************/
{
   static bool firstTime = true;
   if(firstTime)
   {
      ClearScreen();
      firstTime = false;
   }

   GetDrawFunction()();
   glutSwapBuffers();
}