<viz>.enable

This command will enable a given GL mode

 

<viz>.enable(
    mode    # OpenGL state

)

 

mode

The GL mode to enable.


Remarks

This command is a wrapper for the OpenGL glEnable() API command. This command is most useful to programmers who are already familiar with OpenGL and need to achieve special results. The GL state enabled by this command will be set globally.

The value for mode must be equal to the values found in the 'gl.h' header file.

Return Value

None

Example

viz.enable(viz.CULL_FACE)
viz.enable(viz.LIGHTING)

See also

<viz>.disable