Пример #1
0
/* Draw Poly line, which does not have to be a closed shape */
static void _DrawPolyLine (const GUI_POINT*pPoints, int NumPoints, int x0, int y0) {
  GL_MoveTo(pPoints->x+x0, pPoints->y+y0);
  while (--NumPoints >0) {
    pPoints++;
    GL_DrawLineTo(pPoints->x+x0, pPoints->y+y0);
  }
}
Пример #2
0
/*********************************************************************
*
*       _DrawPolyLine
*
* Draw Poly line, which does not have to be a closed shape
*/
static void _DrawPolyLine(const GUI_POINT*pPoints, int NumPoints, int x0, int y0) {
  unsigned PixelCnt;
  PixelCnt = 0;
  GL_MoveTo(pPoints->x+x0, pPoints->y+y0);
  while (--NumPoints >0) {
    pPoints++;
    GL_DrawLineToEx(pPoints->x+x0, pPoints->y+y0, &PixelCnt);
  }
}
Пример #3
0
/*********************************************************************
*
*       _DrawPolyLine
*/
static void _DrawPolyLine(const GUI_POINT * pPoints, int NumPoints, int x0, int y0) {
  unsigned PixelCnt;
  PixelCnt = 0;
  WM_ADDORG(x0,y0);
  WM_ITERATE_START(NULL); {
    GL_MoveTo(pPoints->x + x0, y0 - pPoints->y);
    while (--NumPoints >0) {
      pPoints++;
      GL_DrawLineToEx(pPoints->x + x0, y0 - pPoints->y, &PixelCnt);
    }
  } WM_ITERATE_END();
}