Lines Matching refs:c

32 void ggl_init_raster(context_t* c)  in ggl_init_raster()  argument
34 GGLContext& procs = *(GGLContext*)c; in ggl_init_raster()
42 GGL_CONTEXT(c, con); in ggl_rasterPos2x()
44 c->state.raster.x = x; in ggl_rasterPos2x()
45 c->state.raster.y = y; in ggl_rasterPos2x()
56 GGL_CONTEXT(c, con); in ggl_copyPixels()
59 surface_t* cb = &(c->state.buffers.color); 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()
105 const GGLFormat* fp = &(c->formats[cb->format]); in ggl_copyPixels()
148 GGL_CONTEXT(c, (void*)con); in gglBitBlit()
156 const GGLSurface& cbSurface = c->state.buffers.color.s; in gglBitBlit()
157 c->procs.activeTexture(c, tmu); in gglBitBlit()
158 c->procs.disable(c, GGL_W_LERP); in gglBitBlit()
161 if (c->state.enabled_tmu != tmus) { in gglBitBlit()
162 c->activeTMU->enable = 1; in gglBitBlit()
163 c->state.enabled_tmu = tmus; in gglBitBlit()
164 c->state.enables |= GGL_ENABLE_TMUS; in gglBitBlit()
165 ggl_state_changed(c, GGL_TMU_STATE); in gglBitBlit()
171 c->procs.texGeni(c, GGL_S, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE); in gglBitBlit()
172 c->procs.texGeni(c, GGL_T, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE); in gglBitBlit()
177 c->procs.texCoord2i(c, s0, t0); in gglBitBlit()
178 c->procs.recti(c, x, y, x+w, y+h); in gglBitBlit()
185 c->procs.texParameteri(c, GGL_TEXTURE_2D, GGL_TEXTURE_WRAP_S, GGL_CLAMP); in gglBitBlit()
186 c->procs.texParameteri(c, GGL_TEXTURE_2D, GGL_TEXTURE_WRAP_T, GGL_CLAMP); in gglBitBlit()
187 c->procs.texGeni(c, GGL_S, GGL_TEXTURE_GEN_MODE, GGL_AUTOMATIC); in gglBitBlit()
188 c->procs.texGeni(c, GGL_T, GGL_TEXTURE_GEN_MODE, GGL_AUTOMATIC); in gglBitBlit()
208 c->procs.texCoordGradScale8xv(c, tmu, texcoords); in gglBitBlit()
209 c->procs.recti(c, in gglBitBlit()