Name
gl.GetClipPlane -- return the coefficients of the specified clipping plane
Synopsis
equationArray = gl.GetClipPlane(plane)
Function
gl.GetClipPlane() returns in equation the four coefficients of the plane equation for plane.

It is always the case that #GL_CLIP_PLANEi = #GL_CLIP_PLANE0 + i.

If an error is generated, no change is made to the contents of equation.

Please consult an OpenGL reference manual for more information.

Inputs
plane
specifies a clipping plane; the number of clipping planes depends on the implementation, but at least six clipping planes are supported; they are identified by symbolic names of the form #GL_CLIP_PLANEi where i ranges from 0 to the value of #GL_MAX_CLIP_PLANES - 1
Results
equationArray
table with four double-precision values that are the coefficients of the plane equation of plane in eye coordinates; the initial value is (0, 0, 0, 0)
Errors
#GL_INVALID_ENUM is generated if plane is not an accepted value.

#GL_INVALID_OPERATION is generated if gl.GetClipPlane() is executed between the execution of gl.Begin() and the corresponding execution of gl.End() .


Show TOC