Lines Matching refs:Select

174    ctx->Select.Buffer = buffer;  in _mesa_SelectBuffer()
175 ctx->Select.BufferSize = size; in _mesa_SelectBuffer()
176 ctx->Select.BufferCount = 0; in _mesa_SelectBuffer()
177 ctx->Select.HitFlag = GL_FALSE; in _mesa_SelectBuffer()
178 ctx->Select.HitMinZ = 1.0; in _mesa_SelectBuffer()
179 ctx->Select.HitMaxZ = 0.0; in _mesa_SelectBuffer()
195 if (ctx->Select.BufferCount < ctx->Select.BufferSize) { in write_record()
196 ctx->Select.Buffer[ctx->Select.BufferCount] = value; in write_record()
198 ctx->Select.BufferCount++; in write_record()
214 ctx->Select.HitFlag = GL_TRUE; in _mesa_update_hitflag()
215 if (z < ctx->Select.HitMinZ) { in _mesa_update_hitflag()
216 ctx->Select.HitMinZ = z; in _mesa_update_hitflag()
218 if (z > ctx->Select.HitMaxZ) { in _mesa_update_hitflag()
219 ctx->Select.HitMaxZ = z; in _mesa_update_hitflag()
245 zmin = (GLuint) ((GLfloat) zscale * ctx->Select.HitMinZ); in write_hit_record()
246 zmax = (GLuint) ((GLfloat) zscale * ctx->Select.HitMaxZ); in write_hit_record()
248 write_record( ctx, ctx->Select.NameStackDepth ); in write_hit_record()
251 for (i = 0; i < ctx->Select.NameStackDepth; i++) { in write_hit_record()
252 write_record( ctx, ctx->Select.NameStack[i] ); in write_hit_record()
255 ctx->Select.Hits++; in write_hit_record()
256 ctx->Select.HitFlag = GL_FALSE; in write_hit_record()
257 ctx->Select.HitMinZ = 1.0; in write_hit_record()
258 ctx->Select.HitMaxZ = -1.0; in write_hit_record()
277 if (ctx->Select.HitFlag) { in _mesa_InitNames()
281 ctx->Select.NameStackDepth = 0; in _mesa_InitNames()
282 ctx->Select.HitFlag = GL_FALSE; in _mesa_InitNames()
283 ctx->Select.HitMinZ = 1.0; in _mesa_InitNames()
284 ctx->Select.HitMaxZ = 0.0; in _mesa_InitNames()
308 if (ctx->Select.NameStackDepth == 0) { in _mesa_LoadName()
315 if (ctx->Select.HitFlag) { in _mesa_LoadName()
318 if (ctx->Select.NameStackDepth < MAX_NAME_STACK_DEPTH) { in _mesa_LoadName()
319 ctx->Select.NameStack[ctx->Select.NameStackDepth-1] = name; in _mesa_LoadName()
322 ctx->Select.NameStack[MAX_NAME_STACK_DEPTH-1] = name; in _mesa_LoadName()
348 if (ctx->Select.HitFlag) { in _mesa_PushName()
351 if (ctx->Select.NameStackDepth >= MAX_NAME_STACK_DEPTH) { in _mesa_PushName()
355 ctx->Select.NameStack[ctx->Select.NameStackDepth++] = name; in _mesa_PushName()
378 if (ctx->Select.HitFlag) { in _mesa_PopName()
381 if (ctx->Select.NameStackDepth == 0) { in _mesa_PopName()
385 ctx->Select.NameStackDepth--; in _mesa_PopName()
427 if (ctx->Select.HitFlag) { in _mesa_RenderMode()
430 if (ctx->Select.BufferCount > ctx->Select.BufferSize) { in _mesa_RenderMode()
438 result = ctx->Select.Hits; in _mesa_RenderMode()
440 ctx->Select.BufferCount = 0; in _mesa_RenderMode()
441 ctx->Select.Hits = 0; in _mesa_RenderMode()
442 ctx->Select.NameStackDepth = 0; in _mesa_RenderMode()
463 if (ctx->Select.BufferSize==0) { in _mesa_RenderMode()
505 ctx->Select.Buffer = NULL; in _mesa_init_feedback()
506 ctx->Select.BufferSize = 0; in _mesa_init_feedback()
507 ctx->Select.BufferCount = 0; in _mesa_init_feedback()
508 ctx->Select.Hits = 0; in _mesa_init_feedback()
509 ctx->Select.NameStackDepth = 0; in _mesa_init_feedback()