Share via


gluGetString

The gluGetString function gets a string that describes the GLU version number or supported GLU extension calls.

const GLubyte *gluGetString(
  GLenum name);

Parameters

  • name
    Either the version number of GLU (GLU_VERSION) or available vendor-specific extension calls (GLU_EXTENSIONS).

Remarks

The gluGetString function returns a pointer to a static, null-terminated string. When name is GLU_VERSION, the returned string is a value that represents the version number of GLU. The format of the version number is as follows:

<version number><space><vendor-specific information> 
(for example, "1.2.11 Microsoft Windows NT")    

The version number has the form "major_number.minor_number" or "major_number.minor_number.release_number". The vendor-specific information is optional, and the format and contents depend on the implementation.

When name is GLU_EXTENSIONS, the returned string contains a list of names of supported GLU extensions that are separated by spaces. The format of the returned list of names is as follows:

<extension_name><space><extension_name><space> . . .
(for example, "GLU_NURBS GL_TESSELATION") 

The extension names cannot contain any spaces.

The gluGetString function is valid for GLU version 1.1 or later.

Requirements

**  Windows NT/2000:** Requires Windows NT 3.5 or later.
**  Windows 95/98:** Requires Windows 95 or later. Available as a redistributable for Windows 95.
**  Header:** Declared in Glu.h.
**  Library:** Use Glu32.lib.