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

popmatrix Subroutine

Purpose

Pops the transformation matrix stack.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void popmatrix( )

FORTRAN Syntax

SUBROUTINE POPMAT

Description

The popmatrix subroutine pops the viewing transformation matrix stack.

This subroutine is not valid when the system is in projection matrix mode (mmode(MPROJ);), because the matrix stack is not accessible in this mode.

Example

The example C language program backface.c uses the popmatrix subroutine, to restore the previous transformation matrix after altering it with the translate modeling subroutine.

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

Setting the current matrix mode with the mmode subroutine.

Getting a copy of the current transformation matrix with the getmatrix subroutine.

Loading a transformation matrix with the loadmatrix subroutine.

Premultiplying the current transformation matrix with the multmatrix subroutine.

Pushing down the transformation matrix stack with the pushmatrix subroutine.

AIX Graphics Library Overview and Working with Coordinate Systems.


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