WireGL Hints

WireGL exposes some of its features through the OpenGL hint mechanism. Below is a list of the values that can be passed to glHint(target, mode) and their effect on the system.

target: WIREGL_OBJECT_BBOX_HINT (0x8F01)
mode: pointer to GLfloat[8]
Enabling this hint will cause WireGL not to calculate bounding boxes but rather use the object space bounding box specified by mode. This increases the speed at which WireGL can process vertexes. The pointer passed by the mode parameter has the following format:

	GLfloat bounds[8] = {
		x_min,
		y_min,
		z_min,
		w_min,  // ignored
		x_max,
		y_max,
		z_max,
		w_max}; // ignored
				

target: WIREGL_SCREEN_BBOX_HINT (0x8F02)
mode: pointer to GLfloat[8]
Same as above except a screen space bounding box is supplied. z_min, w_min, z_max, w_max are ignored.

target: WIREGL_DEFAULT_BBOX_HINT (0x8F03)
mode: GLboolean
Resumes normal bounding box calculation if mode equals GL_TRUE.

target: WIREGL_BROADCAST_HINT (0x8F04)
mode: GLboolean
If mode equals GL_TRUE, the geometry bucketing algorithm will always return that any geometry appears on all output devices. This hint is equivalent to the WIREGL_BROADCAST environment variable. If mode equals GL_FALSE, the default behavior is restored.

target: WIREGL_PACK_ONLY_HINT (0x8F05)
mode: GLboolean
If mode equals GL_TRUE, WireGL performs a GLX style remote rendering. All commands a packed directly and broadcasted to all outputs. Useful for debugging. This is equivalent to the WIREGL_PACK_ONLY environment variable. If mode equals GL_FALSE, the default behavior is restored.