Lines Matching refs:attr
227 struct gl_accum_attrib *attr;
228 attr = MALLOC_STRUCT( gl_accum_attrib );
229 memcpy( attr, &ctx->Accum, sizeof(struct gl_accum_attrib) );
230 save_attrib_data(&head, GL_ACCUM_BUFFER_BIT, attr);
235 struct gl_colorbuffer_attrib *attr;
236 attr = MALLOC_STRUCT( gl_colorbuffer_attrib );
237 memcpy( attr, &ctx->Color, sizeof(struct gl_colorbuffer_attrib) );
240 attr->DrawBuffer[i] = ctx->DrawBuffer->ColorDrawBuffer[i];
241 save_attrib_data(&head, GL_COLOR_BUFFER_BIT, attr);
245 struct gl_current_attrib *attr;
247 attr = MALLOC_STRUCT( gl_current_attrib );
248 memcpy( attr, &ctx->Current, sizeof(struct gl_current_attrib) );
249 save_attrib_data(&head, GL_CURRENT_BIT, attr);
253 struct gl_depthbuffer_attrib *attr;
254 attr = MALLOC_STRUCT( gl_depthbuffer_attrib );
255 memcpy( attr, &ctx->Depth, sizeof(struct gl_depthbuffer_attrib) );
256 save_attrib_data(&head, GL_DEPTH_BUFFER_BIT, attr);
260 struct gl_enable_attrib *attr;
262 attr = MALLOC_STRUCT( gl_enable_attrib );
264 attr->AlphaTest = ctx->Color.AlphaEnabled;
265 attr->AutoNormal = ctx->Eval.AutoNormal;
266 attr->Blend = ctx->Color.BlendEnabled;
267 attr->ClipPlanes = ctx->Transform.ClipPlanesEnabled;
268 attr->ColorMaterial = ctx->Light.ColorMaterialEnabled;
269 attr->CullFace = ctx->Polygon.CullFlag;
270 attr->DepthClamp = ctx->Transform.DepthClamp;
271 attr->DepthTest = ctx->Depth.Test;
272 attr->Dither = ctx->Color.DitherFlag;
273 attr->Fog = ctx->Fog.Enabled;
275 attr->Light[i] = ctx->Light.Light[i].Enabled;
277 attr->Lighting = ctx->Light.Enabled;
278 attr->LineSmooth = ctx->Line.SmoothFlag;
279 attr->LineStipple = ctx->Line.StippleFlag;
280 attr->IndexLogicOp = ctx->Color.IndexLogicOpEnabled;
281 attr->ColorLogicOp = ctx->Color.ColorLogicOpEnabled;
282 attr->Map1Color4 = ctx->Eval.Map1Color4;
283 attr->Map1Index = ctx->Eval.Map1Index;
284 attr->Map1Normal = ctx->Eval.Map1Normal;
285 attr->Map1TextureCoord1 = ctx->Eval.Map1TextureCoord1;
286 attr->Map1TextureCoord2 = ctx->Eval.Map1TextureCoord2;
287 attr->Map1TextureCoord3 = ctx->Eval.Map1TextureCoord3;
288 attr->Map1TextureCoord4 = ctx->Eval.Map1TextureCoord4;
289 attr->Map1Vertex3 = ctx->Eval.Map1Vertex3;
290 attr->Map1Vertex4 = ctx->Eval.Map1Vertex4;
291 memcpy(attr->Map1Attrib, ctx->Eval.Map1Attrib, sizeof(ctx->Eval.Map1Attrib));
292 attr->Map2Color4 = ctx->Eval.Map2Color4;
293 attr->Map2Index = ctx->Eval.Map2Index;
294 attr->Map2Normal = ctx->Eval.Map2Normal;
295 attr->Map2TextureCoord1 = ctx->Eval.Map2TextureCoord1;
296 attr->Map2TextureCoord2 = ctx->Eval.Map2TextureCoord2;
297 attr->Map2TextureCoord3 = ctx->Eval.Map2TextureCoord3;
298 attr->Map2TextureCoord4 = ctx->Eval.Map2TextureCoord4;
299 attr->Map2Vertex3 = ctx->Eval.Map2Vertex3;
300 attr->Map2Vertex4 = ctx->Eval.Map2Vertex4;
301 memcpy(attr->Map2Attrib, ctx->Eval.Map2Attrib, sizeof(ctx->Eval.Map2Attrib));
302 attr->Normalize = ctx->Transform.Normalize;
303 attr->RasterPositionUnclipped = ctx->Transform.RasterPositionUnclipped;
304 attr->PointSmooth = ctx->Point.SmoothFlag;
305 attr->PointSprite = ctx->Point.PointSprite;
306 attr->PolygonOffsetPoint = ctx->Polygon.OffsetPoint;
307 attr->PolygonOffsetLine = ctx->Polygon.OffsetLine;
308 attr->PolygonOffsetFill = ctx->Polygon.OffsetFill;
309 attr->PolygonSmooth = ctx->Polygon.SmoothFlag;
310 attr->PolygonStipple = ctx->Polygon.StippleFlag;
311 attr->RescaleNormals = ctx->Transform.RescaleNormals;
312 attr->Scissor = ctx->Scissor.Enabled;
313 attr->Stencil = ctx->Stencil.Enabled;
314 attr->StencilTwoSide = ctx->Stencil.TestTwoSide;
315 attr->MultisampleEnabled = ctx->Multisample.Enabled;
316 attr->SampleAlphaToCoverage = ctx->Multisample.SampleAlphaToCoverage;
317 attr->SampleAlphaToOne = ctx->Multisample.SampleAlphaToOne;
318 attr->SampleCoverage = ctx->Multisample.SampleCoverage;
320 attr->Texture[i] = ctx->Texture.Unit[i].Enabled;
321 attr->TexGen[i] = ctx->Texture.Unit[i].TexGenEnabled;
324 attr->VertexProgram = ctx->VertexProgram.Enabled;
325 attr->VertexProgramPointSize = ctx->VertexProgram.PointSizeEnabled;
326 attr->VertexProgramTwoSide = ctx->VertexProgram.TwoSideEnabled;
327 save_attrib_data(&head, GL_ENABLE_BIT, attr);
330 attr->sRGBEnabled = ctx->Color.sRGBEnabled;
334 struct gl_eval_attrib *attr;
335 attr = MALLOC_STRUCT( gl_eval_attrib );
336 memcpy( attr, &ctx->Eval, sizeof(struct gl_eval_attrib) );
337 save_attrib_data(&head, GL_EVAL_BIT, attr);
341 struct gl_fog_attrib *attr;
342 attr = MALLOC_STRUCT( gl_fog_attrib );
343 memcpy( attr, &ctx->Fog, sizeof(struct gl_fog_attrib) );
344 save_attrib_data(&head, GL_FOG_BIT, attr);
348 struct gl_hint_attrib *attr;
349 attr = MALLOC_STRUCT( gl_hint_attrib );
350 memcpy( attr, &ctx->Hint, sizeof(struct gl_hint_attrib) );
351 save_attrib_data(&head, GL_HINT_BIT, attr);
355 struct gl_light_attrib *attr;
357 attr = MALLOC_STRUCT( gl_light_attrib );
358 memcpy( attr, &ctx->Light, sizeof(struct gl_light_attrib) );
359 save_attrib_data(&head, GL_LIGHTING_BIT, attr);
363 struct gl_line_attrib *attr;
364 attr = MALLOC_STRUCT( gl_line_attrib );
365 memcpy( attr, &ctx->Line, sizeof(struct gl_line_attrib) );
366 save_attrib_data(&head, GL_LINE_BIT, attr);
370 struct gl_list_attrib *attr;
371 attr = MALLOC_STRUCT( gl_list_attrib );
372 memcpy( attr, &ctx->List, sizeof(struct gl_list_attrib) );
373 save_attrib_data(&head, GL_LIST_BIT, attr);
377 struct gl_pixel_attrib *attr;
378 attr = MALLOC_STRUCT( gl_pixel_attrib );
379 memcpy( attr, &ctx->Pixel, sizeof(struct gl_pixel_attrib) );
381 attr->ReadBuffer = ctx->ReadBuffer->ColorReadBuffer;
382 save_attrib_data(&head, GL_PIXEL_MODE_BIT, attr);
386 struct gl_point_attrib *attr;
387 attr = MALLOC_STRUCT( gl_point_attrib );
388 memcpy( attr, &ctx->Point, sizeof(struct gl_point_attrib) );
389 save_attrib_data(&head, GL_POINT_BIT, attr);
393 struct gl_polygon_attrib *attr;
394 attr = MALLOC_STRUCT( gl_polygon_attrib );
395 memcpy( attr, &ctx->Polygon, sizeof(struct gl_polygon_attrib) );
396 save_attrib_data(&head, GL_POLYGON_BIT, attr);
407 struct gl_scissor_attrib *attr;
408 attr = MALLOC_STRUCT( gl_scissor_attrib );
409 memcpy( attr, &ctx->Scissor, sizeof(struct gl_scissor_attrib) );
410 save_attrib_data(&head, GL_SCISSOR_BIT, attr);
414 struct gl_stencil_attrib *attr;
415 attr = MALLOC_STRUCT( gl_stencil_attrib );
416 memcpy( attr, &ctx->Stencil, sizeof(struct gl_stencil_attrib) );
417 save_attrib_data(&head, GL_STENCIL_BUFFER_BIT, attr);
460 struct gl_transform_attrib *attr;
461 attr = MALLOC_STRUCT( gl_transform_attrib );
462 memcpy( attr, &ctx->Transform, sizeof(struct gl_transform_attrib) );
463 save_attrib_data(&head, GL_TRANSFORM_BIT, attr);
467 struct gl_viewport_attrib *attr;
468 attr = MALLOC_STRUCT( gl_viewport_attrib );
469 memcpy( attr, &ctx->Viewport, sizeof(struct gl_viewport_attrib) );
470 save_attrib_data(&head, GL_VIEWPORT_BIT, attr);
475 attr;
476 attr = MALLOC_STRUCT( gl_multisample_attrib );
477 memcpy( attr, &ctx->Multisample, sizeof(struct gl_multisample_attrib) );
478 save_attrib_data(&head, GL_MULTISAMPLE_BIT_ARB, attr);
845 struct gl_attrib_node *attr, *next;
855 attr = ctx->AttribStack[ctx->AttribStackDepth];
857 while (attr) {
861 _mesa_lookup_enum_by_nr(attr->kind));
864 switch (attr->kind) {
868 accum = (const struct gl_accum_attrib *) attr->data;
879 color = (const struct gl_colorbuffer_attrib *) attr->data;
998 memcpy( &ctx->Current, attr->data,
1004 depth = (const struct gl_depthbuffer_attrib *) attr->data;
1014 enable = (const struct gl_enable_attrib *) attr->data;
1020 memcpy( &ctx->Eval, attr->data, sizeof(struct gl_eval_attrib) );
1026 fog = (const struct gl_fog_attrib *) attr->data;
1039 hint = (const struct gl_hint_attrib *) attr->data;
1056 light = (const struct gl_light_attrib *) attr->data;
1122 line = (const struct gl_line_attrib *) attr->data;
1130 memcpy( &ctx->List, attr->data, sizeof(struct gl_list_attrib) );
1133 memcpy( &ctx->Pixel, attr->data, sizeof(struct gl_pixel_attrib) );
1141 point = (const struct gl_point_attrib *) attr->data;
1176 polygon = (const struct gl_polygon_attrib *) attr->data;
1195 memcpy( ctx->PolygonStipple, attr->data, 32*sizeof(GLuint) );
1198 ctx->Driver.PolygonStipple( ctx, (const GLubyte *) attr->data );
1203 scissor = (const struct gl_scissor_attrib *) attr->data;
1212 stencil = (const struct gl_stencil_attrib *) attr->data;
1245 xform = (const struct gl_transform_attrib *) attr->data;
1275 = (struct texture_state *) attr->data;
1283 vp = (const struct gl_viewport_attrib *) attr->data;
1291 ms = (const struct gl_multisample_attrib *) attr->data;
1319 next = attr->next;
1320 FREE( attr->data );
1321 FREE( attr );
1322 attr = next;
1522 struct gl_pixelstore_attrib *attr;
1524 attr = CALLOC_STRUCT( gl_pixelstore_attrib );
1525 copy_pixelstore(ctx, attr, &ctx->Pack);
1526 save_attrib_data(&head, GL_CLIENT_PACK_BIT, attr);
1528 attr = CALLOC_STRUCT( gl_pixelstore_attrib );
1529 copy_pixelstore(ctx, attr, &ctx->Unpack);
1530 save_attrib_data(&head, GL_CLIENT_UNPACK_BIT, attr);
1534 struct gl_array_attrib *attr;
1535 attr = CALLOC_STRUCT( gl_array_attrib );
1536 init_array_attrib_data(ctx, attr);
1537 save_array_attrib(ctx, attr, &ctx->Array);
1538 save_attrib_data(&head, GL_CLIENT_VERTEX_ARRAY_BIT, attr);
1585 struct gl_array_attrib * attr =
1587 restore_array_attrib(ctx, &ctx->Array, attr);
1588 free_array_attrib_data(ctx, attr);
1625 struct gl_attrib_node *attr, *next;
1628 attr = ctx->AttribStack[ctx->AttribStackDepth];
1630 while (attr) {
1631 if (attr->kind == GL_TEXTURE_BIT) {
1632 struct texture_state *texstate = (struct texture_state*)attr->data;
1646 next = attr->next;
1647 free(attr->data);
1648 free(attr);
1649 attr = next;