Home / comp / gb.opengl / gl / hint 
Gl.Hint (gb.opengl)
Syntax
STATIC SUB Hint ( Target AS Integer, Mode AS Integer )

Specify implementation-specific hints

Parameters

Description

  Certain aspects of GL behavior, when there is room for interpretation, can be controlled with hints. A hint is specified with two arguments. Target is a symbolic constant indicating the behavior to be controlled, and Mode is another symbolic constant indicating the desired behavior. Mode can be one of the following:

Though the implementation aspects that can be hinted are well defined, the interpretation of the hints depends on the implementation. The hint aspects that can be specified with Target, along with suggested semantics, are as follows:

The interpretation of hints depends on the implementation. Gl.Hint can be ignored.

Errors

Gl.GL_INVALID_ENUM is generated if target or mode is not an accepted value.
Gl.GL_INVALID_OPERATION is generated if Gl.Hint is called between a call to Gl.Begin and the corresponding call to Gl.End.