The glGetClipPlane function returns the coefficients of the specified clipping plane.
void glGetClipPlane(
GLenum plane,
GLdouble * equation
);
The glGetClipPlane function 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.
The following are the error codes generated and their conditions.
Error Code | Condition |
---|---|
GL_INVALID_ENUM | plane was not an accepted value. |
GL_INVALID_OPERATION | glGetClipPlane was called between a call to glBegin and the corresponding call to glEnd. |
Windows NT: Use version 3.5 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in gl.h.
Import Library: Link with opengl32.lib.