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

genobj Subroutine

Purpose

Returns a unique integer for use as an object identifier.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

Int32 genobj( )

FORTRAN Syntax

INTEGER*4 FUNCTION GENOBJ

Description

The genobj subroutine generates unique 31-bit integer numbers for use as object identifiers.

When using a combination of user-defined and genobj-defined numbers to generate object numbers, ensure that each combination is unique because the genobj subroutine will not generate an object name that is currently in use.

The isobj subroutine can affirm the uniqueness of an object number.

Note: This editing subroutine itself cannot be added to a display list.

Return Value

A unique 31-bit integer for use as an object identifier.

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 an instance of an object with the callobj subroutine.

Opening an object for editing with the editobj subroutine.

Returning a unique integer for use as a tag with the gentag subroutine.

Establishing the uniqueness of an object number with the isobj subroutine.

Creating an object with the makeobj subroutine.

AIX Graphics Library Overview and Creating Objects (Display Lists).


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