Lines Matching refs:state
44 c->state.raster.x = x;
45 c->state.raster.y = y;
59 surface_t* cb = &(c->state.buffers.color);
72 GGLint xd = gglFixedToIntRound(c->state.raster.x);
73 GGLint yd = gglFixedToIntRound(c->state.raster.y);
76 if (xd < GGLint(c->state.scissor.left)) {
77 GGLint offset = GGLint(c->state.scissor.left) - xd;
78 xd = GGLint(c->state.scissor.left);
82 if (yd < GGLint(c->state.scissor.top)) {
83 GGLint offset = GGLint(c->state.scissor.top) - yd;
84 yd = GGLint(c->state.scissor.top);
88 if ((xd + width) > GGLint(c->state.scissor.right)) {
89 width = GGLint(c->state.scissor.right) - xd;
91 if ((yd + height) > GGLint(c->state.scissor.bottom)) {
92 height = GGLint(c->state.scissor.bottom) - yd;
156 const GGLSurface& cbSurface = c->state.buffers.color.s;
161 if (c->state.enabled_tmu != tmus) {
163 c->state.enabled_tmu = tmus;
164 c->state.enables |= GGL_ENABLE_TMUS;