Lines Matching refs:GGLint
28 static void ggl_rasterPos2i(void* con, GGLint x, GGLint y);
29 static void ggl_copyPixels(void* con, GGLint xs, GGLint ys,
48 void ggl_rasterPos2i(void* con, GGLint x, GGLint y) in ggl_rasterPos2i()
53 void ggl_copyPixels(void* con, GGLint xs, GGLint ys, in ggl_copyPixels()
72 GGLint xd = gglFixedToIntRound(c->state.raster.x); in ggl_copyPixels()
73 GGLint yd = gglFixedToIntRound(c->state.raster.y); in ggl_copyPixels()
76 if (xd < GGLint(c->state.scissor.left)) { in ggl_copyPixels()
77 GGLint offset = GGLint(c->state.scissor.left) - xd; in ggl_copyPixels()
78 xd = GGLint(c->state.scissor.left); in ggl_copyPixels()
82 if (yd < GGLint(c->state.scissor.top)) { in ggl_copyPixels()
83 GGLint offset = GGLint(c->state.scissor.top) - yd; in ggl_copyPixels()
84 yd = GGLint(c->state.scissor.top); in ggl_copyPixels()
88 if ((xd + width) > GGLint(c->state.scissor.right)) { in ggl_copyPixels()
89 width = GGLint(c->state.scissor.right) - xd; in ggl_copyPixels()
91 if ((yd + height) > GGLint(c->state.scissor.bottom)) { in ggl_copyPixels()
92 height = GGLint(c->state.scissor.bottom) - yd; in ggl_copyPixels()
146 GGLint gglBitBlit(GGLContext* con, int tmu, GGLint crop[4], GGLint where[4]) in gglBitBlit()
150 GGLint x = where[0]; in gglBitBlit()
151 GGLint y = where[1]; in gglBitBlit()
152 GGLint w = where[2]; in gglBitBlit()
153 GGLint h = where[3]; in gglBitBlit()
167 const GGLint Wcr = crop[2]; in gglBitBlit()
168 const GGLint Hcr = crop[3]; in gglBitBlit()
172 const GGLint Ucr = crop[0]; in gglBitBlit()
173 const GGLint Vcr = crop[1]; in gglBitBlit()
174 const GGLint s0 = Ucr - x; in gglBitBlit()
175 const GGLint t0 = Vcr - y; in gglBitBlit()
189 const GGLint Ucr = crop[0] << 16; in gglBitBlit()
190 const GGLint Vcr = crop[1] << 16; in gglBitBlit()
191 const GGLint Wcr = crop[2] << 16; in gglBitBlit()
192 const GGLint Hcr = crop[3] << 16; in gglBitBlit()