Lines Matching refs:Select
155 * the fields in __struct gl_contextRec::Select with the given buffer.
173 ctx->Select.Buffer = buffer;
174 ctx->Select.BufferSize = size;
175 ctx->Select.BufferCount = 0;
176 ctx->Select.HitFlag = GL_FALSE;
177 ctx->Select.HitMinZ = 1.0;
178 ctx->Select.HitMaxZ = 0.0;
194 if (ctx->Select.BufferCount < ctx->Select.BufferSize) {
195 ctx->Select.Buffer[ctx->Select.BufferCount] = value;
197 ctx->Select.BufferCount++;
213 ctx->Select.HitFlag = GL_TRUE;
214 if (z < ctx->Select.HitMinZ) {
215 ctx->Select.HitMinZ = z;
217 if (z > ctx->Select.HitMaxZ) {
218 ctx->Select.HitMaxZ = z;
244 zmin = (GLuint) ((GLfloat) zscale * ctx->Select.HitMinZ);
245 zmax = (GLuint) ((GLfloat) zscale * ctx->Select.HitMaxZ);
247 write_record( ctx, ctx->Select.NameStackDepth );
250 for (i = 0; i < ctx->Select.NameStackDepth; i++) {
251 write_record( ctx, ctx->Select.NameStack[i] );
254 ctx->Select.Hits++;
255 ctx->Select.HitFlag = GL_FALSE;
256 ctx->Select.HitMinZ = 1.0;
257 ctx->Select.HitMaxZ = -1.0;
264 * Verifies we are in select mode and resets the name stack depth and resets
276 if (ctx->Select.HitFlag) {
280 ctx->Select.NameStackDepth = 0;
281 ctx->Select.HitFlag = GL_FALSE;
282 ctx->Select.HitMinZ = 1.0;
283 ctx->Select.HitMaxZ = 0.0;
297 * sa __struct gl_contextRec::Select.
307 if (ctx->Select.NameStackDepth == 0) {
314 if (ctx->Select.HitFlag) {
317 if (ctx->Select.NameStackDepth < MAX_NAME_STACK_DEPTH) {
318 ctx->Select.NameStack[ctx->Select.NameStackDepth-1] = name;
321 ctx->Select.NameStack[MAX_NAME_STACK_DEPTH-1] = name;
335 * sa __struct gl_contextRec::Select.
347 if (ctx->Select.HitFlag) {
350 if (ctx->Select.NameStackDepth >= MAX_NAME_STACK_DEPTH) {
354 ctx->Select.NameStack[ctx->Select.NameStackDepth++] = name;
365 * sa __struct gl_contextRec::Select.
377 if (ctx->Select.HitFlag) {
380 if (ctx->Select.NameStackDepth == 0) {
384 ctx->Select.NameStackDepth--;
404 * rasterization mode, such as writing the hit record or resent the select
405 * buffer index when exiting the select mode. Updates
427 if (ctx->Select.HitFlag) {
430 if (ctx->Select.BufferCount > ctx->Select.BufferSize) {
438 result = ctx->Select.Hits;
440 ctx->Select.BufferCount = 0;
441 ctx->Select.Hits = 0;
442 ctx->Select.NameStackDepth = 0;
463 if (ctx->Select.BufferSize==0) {
505 ctx->Select.Buffer = NULL;
506 ctx->Select.BufferSize = 0;
507 ctx->Select.BufferCount = 0;
508 ctx->Select.Hits = 0;
509 ctx->Select.NameStackDepth = 0;