Lines Matching refs:Select
173 ctx->Select.Buffer = buffer; in _mesa_SelectBuffer()
174 ctx->Select.BufferSize = size; in _mesa_SelectBuffer()
175 ctx->Select.BufferCount = 0; in _mesa_SelectBuffer()
176 ctx->Select.HitFlag = GL_FALSE; in _mesa_SelectBuffer()
177 ctx->Select.HitMinZ = 1.0; in _mesa_SelectBuffer()
178 ctx->Select.HitMaxZ = 0.0; in _mesa_SelectBuffer()
194 if (ctx->Select.BufferCount < ctx->Select.BufferSize) { in write_record()
195 ctx->Select.Buffer[ctx->Select.BufferCount] = value; in write_record()
197 ctx->Select.BufferCount++; in write_record()
213 ctx->Select.HitFlag = GL_TRUE; in _mesa_update_hitflag()
214 if (z < ctx->Select.HitMinZ) { in _mesa_update_hitflag()
215 ctx->Select.HitMinZ = z; in _mesa_update_hitflag()
217 if (z > ctx->Select.HitMaxZ) { in _mesa_update_hitflag()
218 ctx->Select.HitMaxZ = z; in _mesa_update_hitflag()
244 zmin = (GLuint) ((GLfloat) zscale * ctx->Select.HitMinZ); in write_hit_record()
245 zmax = (GLuint) ((GLfloat) zscale * ctx->Select.HitMaxZ); in write_hit_record()
247 write_record( ctx, ctx->Select.NameStackDepth ); in write_hit_record()
250 for (i = 0; i < ctx->Select.NameStackDepth; i++) { in write_hit_record()
251 write_record( ctx, ctx->Select.NameStack[i] ); in write_hit_record()
254 ctx->Select.Hits++; in write_hit_record()
255 ctx->Select.HitFlag = GL_FALSE; in write_hit_record()
256 ctx->Select.HitMinZ = 1.0; in write_hit_record()
257 ctx->Select.HitMaxZ = -1.0; in write_hit_record()
276 if (ctx->Select.HitFlag) { in _mesa_InitNames()
280 ctx->Select.NameStackDepth = 0; in _mesa_InitNames()
281 ctx->Select.HitFlag = GL_FALSE; in _mesa_InitNames()
282 ctx->Select.HitMinZ = 1.0; in _mesa_InitNames()
283 ctx->Select.HitMaxZ = 0.0; in _mesa_InitNames()
307 if (ctx->Select.NameStackDepth == 0) { in _mesa_LoadName()
314 if (ctx->Select.HitFlag) { in _mesa_LoadName()
317 if (ctx->Select.NameStackDepth < MAX_NAME_STACK_DEPTH) { in _mesa_LoadName()
318 ctx->Select.NameStack[ctx->Select.NameStackDepth-1] = name; in _mesa_LoadName()
321 ctx->Select.NameStack[MAX_NAME_STACK_DEPTH-1] = name; in _mesa_LoadName()
347 if (ctx->Select.HitFlag) { in _mesa_PushName()
350 if (ctx->Select.NameStackDepth >= MAX_NAME_STACK_DEPTH) { in _mesa_PushName()
354 ctx->Select.NameStack[ctx->Select.NameStackDepth++] = name; in _mesa_PushName()
377 if (ctx->Select.HitFlag) { in _mesa_PopName()
380 if (ctx->Select.NameStackDepth == 0) { in _mesa_PopName()
384 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()