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

getgpos Subroutine

Purpose

Returns the current graphics position.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void getgpos
(Coord *fx, Coord *fy, 
Coord *fz, Coord *fw)

FORTRAN Syntax

SUBROUTINE GETGPO(fx, fy, fz, fw)
REAL fx, fy, fz, fw

Description

The getgpos subroutine returns the current graphics position after transformation by the current matrix.

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

Parameters

fx Specifies the pointer to the location into which to write the x coordinate of the current graphics position.
fy Specifies the pointer to the location into which to write the y coordinate of the current graphics position.
fz Specifies the pointer to the location into which to write the z coordinate of the current graphics position.
fw Specifies the pointer to the location into which to write the w coordinate of the current graphics position. The w value is used when defining a 3-D point in homogeneous coordinates.

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

Getting the current text character position with the getcpos subroutine.

AIX Graphics Library Overview, Drawing with Move-Draw Style Subroutines, Querying the System, and Working in Color Map and RGB Modes.


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