[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

gluNurbsCallback Subroutine

Purpose

Defines a callback for a non-uniform rational B-spline (NURBS) object.

Library

OpenGL C bindings library: libGL.a

C Syntax

void gluNurbsCallback(GLUnurbsObj *nobj, 
   GLenum Which, 
   void (*Function)())

Description

The gluNurbsCallback subroutine is used to define a callback to be used by a NURBS object. If the specified callback is already defined, the existing definition is replaced. If the fn parameter is null, the existing callback is erased.

There is only one legal callback, GLU_ERROR, associated with this subroutine. The error function is called when an error is encountered. Its single argument type is GLenum, which indicates the specific error that occurred. There are 37 errors unique to NURBS. They are named GLU_NURBS_ERROR1 through GLU_NURBS_ERROR37. Character strings describing these errors can be retrieved with the gluErrorString subroutine.

Parameters

nobj Specifies the NURBS object created with the gluNewNurbsRenderer subroutine.
Which Specifies the callback being defined. The only valid value is GLU_ERROR.
Function Specifies the function that the callback calls.

Files

/usr/include/GL/gl.h Contains C language constraints, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The gluErrorString subroutine, gluNewNurbsRenderer subroutine.

OpenGL Overview.


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