Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 33133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:52:21+00:00 2026-05-10T13:52:21+00:00

Is it easy to create GLUT pop-up menus for my OpenGL application? If yes,

  • 0

Is it easy to create GLUT pop-up menus for my OpenGL application? If yes, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:52:22+00:00Added an answer on May 10, 2026 at 1:52 pm

    Creating and using pop-up menus with GLUT is very simple. Here is a code sample that creates a pop-up menu with 4 options:

    // Menu items enum MENU_TYPE {         MENU_FRONT,         MENU_SPOT,         MENU_BACK,         MENU_BACK_FRONT, };  // Assign a default value MENU_TYPE show = MENU_BACK_FRONT;  // Menu handling function declaration void menu(int);  int main() {         // ...          // Create a menu         glutCreateMenu(menu);          // Add menu items         glutAddMenuEntry('Show Front', MENU_FRONT);         glutAddMenuEntry('Show Back', MENU_BACK);         glutAddMenuEntry('Spotlight', MENU_SPOT);         glutAddMenuEntry('Blend 'em all', MENU_BACK_FRONT);          // Associate a mouse button with menu         glutAttachMenu(GLUT_RIGHT_BUTTON);          // ...          return; }  // Menu handling function definition void menu(int item) {         switch (item)         {         case MENU_FRONT:         case MENU_SPOT:         case MENU_DEPTH:         case MENU_BACK:         case MENU_BACK_FRONT:                 {                         show = (MENU_TYPE) item;                 }                 break;         default:                 {       /* Nothing */       }                 break;         }          glutPostRedisplay();          return; } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it easy to create an IPC setup with wxWidgets? I have an application
Salvete! With Adobe InDesign, it is easy to create custom menus using extendscript and
In JavaFx i can easy create animations, moving pieces etc., but as far as
Is it possible/easy to create a web page which would act like a Microsoft
I think its easy to create form via only html and do not use
It is common and easy to create function like: var f = function(){ alert(something);
In EWS Managed API is it easy to create an appointment for a specific
The Google Closure (GC) Javascript Library makes it very easy to create an AutoComplete
I'm trying to create an easy play / pause button system with Raphael but
What's an easy way to create a directory on an FTP server using C#?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.