---
name: "glutSetMenu"
section: "3xglut"
platform: "linux"
package: "glut-doc"
version: "3.7-14"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/glutSetMenu/3xglut"
---

# glutSetMenu(3xglut)

sets the current menu; glutGetMenu - returns the identifier of the current menu.

## NAME

glutSetMenu - sets the current menu; glutGetMenu - returns the identifier of the current menu.

## SYNTAX

```

```

void glutSetMenu(int menu); int glutGetMenu(void);

## ARGUMENTS

- *menu*

  The identifier of the menu to make the current menu.

## DESCRIPTION

glutSetMenu sets the current menu; glutGetMenu returns the identifier of the current menu. If no menus exist or the previous current menu was destroyed, glutGetMenu returns zero.

## SEE ALSO

glutCreateMenu, glutSetWindow

## AUTHOR

Mark J. Kilgard (mjk@nvidia.com)
