User Controls Common to All Examples
A popup menu appears with a right click in the area outside the graphics window and GLUI control panel; this is similar to the tutorials. The menu choices for all examples are "Show Source Code", "Close Source Code" and "Close Example". Note that Internet Explorer opens automatically with each example and displays a discussion and/or code listing. Thus, the first two menu items are provided for closing and re-opening these documents. The third menu item closes both the example and IE.
Since this user control is ancillary to the example, the cpp code used to carry out this function is not shown here in the code listing. The interested reader may view the pertinent code in ExampleWithControl.cpp, which resides in ComputerGraphicsTutorials/Examples/ControlSourceCode.
User Controls Particular to This Example
GLUI Constrols
- List Box - double click on a obj file to open it
- Button - close program
Mouse
The object is centered at the origin. You may rotate the object
about the x and y coordinate axes by dragging the mouse in the graphics window with the left button down.
Keyboard - Special Keys
- Up Arrow - "brighten" the light
- Down Arrow - "dim" the light