[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

picksize Subroutine

Purpose

Sets the dimensions of the picking region.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void picksize(Int16 deltax, Int16 deltay)

FORTRAN Syntax

SUBROUTINE PICKSI(deltax, deltay)
INTEGER*4 deltax, deltay
Note: For FORTRAN users, this subroutine accepts long integer parameters (INTEGER*4) when invoked from a FORTRAN program, although it accepts short integers when invoked from a C program. The C and FORTRAN syntax shown here reflect this difference.

Description

The picksize subroutine sets the dimensions of the picking region. The default setting is 10x10 pixels. In picking mode, any drawing primitives that intersect the picking region are reported as hits.

If a drawing primitive overlaps or intrudes upon the picking volume, a hit is recorded. The hit is recorded by placing the depth of the name stack into the next vacant slot in the buffer, followed by the entire contents of the name stack.

The bottom of the name stack is transferred to the buffer first, followed by the second from the bottom entry of the name stack, and so forth. In other words, the data from bottom to top is mapped from left to right.

Note: This subroutine cannot be used to add to a display list.

Parameters

deltax Specifies the new width of the picking region.
deltay Specifies the new height of the picking region.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Putting the system in picking mode with the pick subroutine.

AIX Graphics Library Overview and Picking and Selecting Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]