Home | History | Annotate | Download | only in main

Lines Matching refs:Select

156  * the fields in __struct gl_contextRec::Select with the given buffer.
174 ctx->Select.Buffer = buffer;
175 ctx->Select.BufferSize = size;
176 ctx->Select.BufferCount = 0;
177 ctx->Select.HitFlag = GL_FALSE;
178 ctx->Select.HitMinZ = 1.0;
179 ctx->Select.HitMaxZ = 0.0;
195 if (ctx->Select.BufferCount < ctx->Select.BufferSize) {
196 ctx->Select.Buffer[ctx->Select.BufferCount] = value;
198 ctx->Select.BufferCount++;
214 ctx->Select.HitFlag = GL_TRUE;
215 if (z < ctx->Select.HitMinZ) {
216 ctx->Select.HitMinZ = z;
218 if (z > ctx->Select.HitMaxZ) {
219 ctx->Select.HitMaxZ = z;
245 zmin = (GLuint) ((GLfloat) zscale * ctx->Select.HitMinZ);
246 zmax = (GLuint) ((GLfloat) zscale * ctx->Select.HitMaxZ);
248 write_record( ctx, ctx->Select.NameStackDepth );
251 for (i = 0; i < ctx->Select.NameStackDepth; i++) {
252 write_record( ctx, ctx->Select.NameStack[i] );
255 ctx->Select.Hits++;
256 ctx->Select.HitFlag = GL_FALSE;
257 ctx->Select.HitMinZ = 1.0;
258 ctx->Select.HitMaxZ = -1.0;
265 * Verifies we are in select mode and resets the name stack depth and resets
277 if (ctx->Select.HitFlag) {
281 ctx->Select.NameStackDepth = 0;
282 ctx->Select.HitFlag = GL_FALSE;
283 ctx->Select.HitMinZ = 1.0;
284 ctx->Select.HitMaxZ = 0.0;
298 * sa __struct gl_contextRec::Select.
308 if (ctx->Select.NameStackDepth == 0) {
315 if (ctx->Select.HitFlag) {
318 if (ctx->Select.NameStackDepth < MAX_NAME_STACK_DEPTH) {
319 ctx->Select.NameStack[ctx->Select.NameStackDepth-1] = name;
322 ctx->Select.NameStack[MAX_NAME_STACK_DEPTH-1] = name;
336 * sa __struct gl_contextRec::Select.
348 if (ctx->Select.HitFlag) {
351 if (ctx->Select.NameStackDepth >= MAX_NAME_STACK_DEPTH) {
355 ctx->Select.NameStack[ctx->Select.NameStackDepth++] = name;
366 * sa __struct gl_contextRec::Select.
378 if (ctx->Select.HitFlag) {
381 if (ctx->Select.NameStackDepth == 0) {
385 ctx->Select.NameStackDepth--;
405 * rasterization mode, such as writing the hit record or resent the select
406 * 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;