hedgewars/GearDrawing.inc
changeset 3641 98319a621dc8
parent 3508 a7ca07614a2d
child 3710 411f5c2b5292
equal deleted inserted replaced
3640:54676a34b9ad 3641:98319a621dc8
   129                 VertexBuffer[0].X:= hx + WorldDx;
   129                 VertexBuffer[0].X:= hx + WorldDx;
   130                 VertexBuffer[0].Y:= hy + WorldDy;
   130                 VertexBuffer[0].Y:= hy + WorldDy;
   131                 VertexBuffer[1].X:= tx + WorldDx;
   131                 VertexBuffer[1].X:= tx + WorldDx;
   132                 VertexBuffer[1].Y:= ty + WorldDy;
   132                 VertexBuffer[1].Y:= ty + WorldDy;
   133 
   133 
   134                 glEnableClientState(GL_VERTEX_ARRAY);
       
   135                 glVertexPointer(2, GL_FLOAT, 0, @VertexBuffer[0]);
   134                 glVertexPointer(2, GL_FLOAT, 0, @VertexBuffer[0]);
   136                 glDrawArrays(GL_LINES, 0, Length(VertexBuffer));
   135                 glDrawArrays(GL_LINES, 0, Length(VertexBuffer));
   137                 Tint($FF, $FF, $FF, $FF);
   136                 Tint($FF, $FF, $FF, $FF);
   138                 glEnable(GL_TEXTURE_2D);
   137                 glEnable(GL_TEXTURE_2D);
   139                 glDisable(GL_LINE_SMOOTH);
   138                 glDisable(GL_LINE_SMOOTH);