Lines Matching refs:polygon
1160 if (CHECKDIRTY(sb->polygon.dirty, negbitID))
1162 if (CHECKDIRTY(sb->polygon.enable, negbitID))
1164 CRSTATE_SET_ENABLED(polygon.polygonSmooth, GL_POLYGON_SMOOTH);
1165 CRSTATE_SET_ENABLED(polygon.polygonOffsetFill, GL_POLYGON_OFFSET_FILL);
1166 CRSTATE_SET_ENABLED(polygon.polygonOffsetLine, GL_POLYGON_OFFSET_LINE);
1167 CRSTATE_SET_ENABLED(polygon.polygonOffsetPoint, GL_POLYGON_OFFSET_POINT);
1168 CRSTATE_SET_ENABLED(polygon.polygonStipple, GL_POLYGON_STIPPLE);
1169 CRSTATE_SET_ENABLED(polygon.cullFace, GL_CULL_FACE);
1172 if (CHECKDIRTY(sb->polygon.offset, negbitID))
1174 CRSTATE_SET_FLOAT(polygon.offsetFactor, GL_POLYGON_OFFSET_FACTOR);
1175 CRSTATE_SET_FLOAT(polygon.offsetUnits, GL_POLYGON_OFFSET_UNITS);
1178 if (CHECKDIRTY(sb->polygon.mode, negbitID))
1181 CRSTATE_SET_ENUM(polygon.frontFace, GL_FRONT_FACE);
1182 CRSTATE_SET_ENUM(polygon.cullFaceMode, GL_CULL_FACE_MODE);
1183 val[0] = g->polygon.frontMode;
1184 val[1] = g->polygon.backMode;
1186 CRSTATE_SET_CAP(polygon.frontMode, val[0], "%#x");
1187 CRSTATE_SET_CAP(polygon.backMode, val[1], "%#x");
1192 if (CHECKDIRTY(sb->polygon.stipple, negbitID))
1195 crMemcpy(&stipple[0], &g->polygon.stipple[0], sizeof(stipple));
1197 if (crMemcmp(&stipple[0], &g->polygon.stipple[0], sizeof(stipple)))
1201 crDebug("crStateQueryHWState fixed polygon.stipple");
1204 crMemcpy(&g->polygon.stipple[0], &stipple[0], sizeof(stipple));