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

newpup Subroutine

Purpose

Allocates and initializes a structure for a new menu.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

Int32 newpup( )

FORTRAN Syntax

INTEGER*4 FUNCTION NEWPUP

Description

The newpup subroutine allocates and initializes a structure for a new menu. The return value is a positive menu identifier.

Use this subroutine with the addtopup subroutine to create pop-up menus.

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

Return Value

An identifier for a new menu.

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

Adding an item to an existing pop-up menu with the addtopup subroutine.

Defining a pop-up menu with the defpup subroutine.

Displaying a pop-up menu with the dopup subroutine.

Deallocating a pop-up menu and its data structures with the freepup subroutine.

Enabling or disabling a given pop-up entry with the setpup subroutine.

AIX Graphics Library Overview and Creating and Managing Pop-Up Menus.


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