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

getcpos Subroutine

Purpose

Returns the current character position.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void getcpos(Screencoord *ix, Screencoord *iy)

FORTRAN Syntax

SUBROUTINE GETCPO(ix, iy)
INTEGER*2 ix, iy

Description

The getcpos subroutine gets the current character position, in screen coordinates relative to the lower left corner of the window, and writes it into the parameters.

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

Parameters

ix Specifies a pointer to the location in which to write the x coordinate of the current character position.
iy Specifies a pointer to the location in which to write the y coordinate of the current character position.

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

Drawing a string of raster characters on the screen with the charstr subroutine.

Moving the current character position with the cmov subroutine.

Returning the current graphics position with the getgpos subroutine.

AIX Graphics Library Overview, Creating Text Characters, and Querying the System.


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