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

makeobj Subroutine


Creates an object (display list).


Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void makeobj(Int32 object)


INTEGER*4 object


The makeobj subroutine creates and names a new display list (object). If the object parameter is the number of an existing object, the contents of that object are deleted.

When the makeobj subroutine executes, the object number is entered into a symbol table and memory is allocated for a display list. Subsequent graphics routines are then compiled into the display list instead of executing. Compilation continues until the closeobj subroutine is called.

  1. This editing subroutine itself cannot be added to a display list.
  2. The makeobj subroutine cannot be called within an object; that is, an existing object cannot be used to create a new object.


object Specifies the numeric identifier for the object being defined.


The example C language program depthcue.c uses the makeobj subroutine to specify the beginning of a display list defining a graphical object.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.


/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.

Specifying the amount of memory allocated for an object with the chunksize subroutine.

Closing an object with the closeobj subroutine.

Opening an object for editing with the editobj subroutine.

Returning a unique integer for use as an object identifier with the genobj subroutine.

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

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

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