[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
OpenGL 1.2 for AIX: Reference Manual

glGetClipPlane Subroutine

Purpose

Returns the coefficients of the clipping plane.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glGetClipPlane(GLenum Plane, 
        GLdouble *Equation)

Description

The glGetClipPlane subroutine returns in Equation the four coefficients of the plane equation for Plane.

Parameters

Plane Specifies a clipping plane. The number of clipping planes depends on the implementation; however, at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANEi where 0 < i < GL_MAX_CLIP_PLANES.
Equation Returns four double-precision values that are the coefficients of the plane equation of Plane in eye coordinates.

Notes

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.

Errors

GL_INVALID_ENUM Plane is not an accepted value.
GL_INVALID_OPERATION The glGetClipPlane subroutine is called between a call to glBegin and the corresponding call to glEnd.

Files

/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBegin or glEnd subroutine, glClipPlane subroutine.

OpenGL Overview.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]