Tao.FreeGlut SDK Documentation

Glut.glutDialsFunc Method 

Sets the dial and button box dials callback for the current window.

[Visual Basic]
Public Shared Sub glutDialsFunc( _
   ByVal func As DialsCallback _
)
[C#]
public static void glutDialsFunc(
   DialsCallback func
);

Parameters

func
The new dials callback function. See Glut.DialsCallback.

Remarks

glutDialsFunc sets the dial and button box dials callback for the current window. The dial and button box dials callback for a window is called when the window has dial and button box input focus (normally, when the mouse is in the window) and the user generates dial and button box dial changes. The dial parameter will be the dial number (starting at one). The number of available dial and button box dials can be determined with Glut.glutDeviceGet(Glut.GLUT_NUM_DIALS). The val measures the absolute rotation in degrees. Dial values do not "roll over" with each complete rotation but continue to accumulate degrees (until the int dial value overflows).

Registering a dial and button box dials callback when a dial and button box device is not available is ineffectual and not an error. In this case, no dial and button box dials callbacks will be generated.

Passing null to glutDialsFunc disables the generation of dial and button box dials callbacks. When a new window is created, no dial and button box dials callback is initially registered.

See Also

Glut Class | Tao.FreeGlut Namespace | Glut.DialsCallback | glutDeviceGet