Rename GP_Context -> GP_Pixmap
[gfxprim.git] / libs / gfx / GP_VLine.gen.c.t
blobafd34ca2c840774307c861288a5d3218b3e1af21
1 @ include source.t
2 /*
3  * Vertical Line drawing algorithm.
4  *
5  * Copyright (C) 2009-2014 Cyril Hrubis <metan@ucw.cz>
6  */
8 #include "core/GP_GetPutPixel.h"
9 #include "gfx/GP_VLine.gen.h"
11 @ for ps in pixelsizes:
12 void GP_VLine_Raw_{{ ps.suffix }}(GP_Pixmap *pixmap, GP_Coord x,
13                         GP_Coord y0, GP_Coord y1, GP_Pixel pixel)
15         int y;
17         for (y = y0; y <= y1; y++)
18                 GP_PutPixel_Raw_{{ ps.suffix }}(pixmap, x, y, pixel);