Posts Tagged ‘ graphics ’

GLUI Window Template


This article describes in detail how to create your first GLUI window with some basic controls inside it, and provides you with a template for your OpenGL applications.

When OpenGL applications get more complex, we need something more than a GLUT mouse, keyboard, and\or popup menus to interact with our OpenGL objects drawn on the window. GLUI gives us more flexibility by allowing us to add GUI components to interact with our OpenGL objects, such as buttons, check boxes, radio buttons, spinners, list boxes, lists, trees, file browsers, text fields, text areas, and the special controls: rotation and translation.

This article can be used in the following ways:

  • Learn how to add GUI components to your OpenGL application in a very straight-forward and simple manner, through
    • Documentation
    • Interactive Program that displays to the user how every event is handled and classifies these events into GLUT and GLUI events.
    • Neat and commented Code that reflects the simplicity of the GLUI library
  • Learn some totally new controls in the GLUI library created specifically for graphical manipulation, such as the rotation and translation controls.
  • Use the code as a template for your OpenGL applications.

Click below for a screen shot of what the program would look like when its run.

GLUI Window Template

Make sure you read the GLUT Window Template article as a prerequisite to this article. One important thing to note is that GLUI is a C++ library, which means that your code must be written in files with .cpp extension rather than .C, or otherwise the linker will complain.

Check it out, and let me know your feedback.

Enjoy!
Ali B

GLUT Window Template


This article describes in detail how to set up your first OpenGL GLUT window and provides you with a template for your OpenGL applications. It can be used in the following ways:

  • Learn GLUT and OpenGL through
    • Interactive Program
    • Documentation
    • Source Code
  • Start your first OpenGL program
  • Use the code as a template for your OpenGL applications

Click below for a screen shot of what the program would look like when its run.

GLUT Window Template

Make sure you at least read the “Running the Program” section of the documentation before you complain about the program not running.

Check it out, and let me know your feedback.

Enjoy!
Ali B

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: