# glclipplane(3g) [centos man page]

GLCLIPPLANE(3G) OpenGL Manual GLCLIPPLANE(3G)NAME

glClipPlane - specify a plane against which all geometry is clippedC SPECIFICATION

void glClipPlane(GLenum plane, const GLdouble * equation);PARAMETERS

plane Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES-1, are accepted. equation Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation.DESCRIPTION

Geometry is always clipped against the boundaries of a six-plane frustum in x, y, and z. glClipPlane allows the specification of additional planes, not necessarily perpendicular to the x, y, or z axis, against which all geometry is clipped. To determine the maximum number of additional clipping planes, call glGetIntegerv() with argument GL_MAX_CLIP_PLANES. All implementations support at least six such clipping planes. Because the resulting clipping region is the intersection of the defined half-spaces, it is always convex. glClipPlane specifies a half-space using a four-component plane equation. When glClipPlane is called, equation is transformed by the inverse of the modelview matrix and stored in the resulting eye coordinates. Subsequent changes to the modelview matrix have no effect on the stored plane-equation components. If the dot product of the eye coordinates of a vertex with the stored plane equation components is positive or zero, the vertex is in with respect to that clipping plane. Otherwise, it is out. To enable and disable clipping planes, call glEnable() and glDisable() with the argument GL_CLIP_PLANEi, where i is the plane number. All clipping planes are initially defined as (0, 0, 0, 0) in eye coordinates and are disabled.NOTES

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

GL_INVALID_ENUM is generated if plane is not an accepted value. GL_INVALID_OPERATION is generated if glClipPlane is executed between the execution of glBegin() and the corresponding execution of glEnd().ASSOCIATED GETS

glGetClipPlane() glIsEnabled() with argument GL_CLIP_PLANEiSEE ALSO

glEnable()COPYRIGHT

Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.AUTHORS

opengl.orgopengl.org06/10/2014 GLCLIPPLANE(3G)

## Check Out this Related Man Page

GLDEPTHRANGE(3G) [FIXME: manual] GLDEPTHRANGE(3G)NAME

glDepthRange - specify mapping of depth values from normalized device coordinates to window coordinatesC SPECIFICATION

void glDepthRange(GLdouble nearVal, GLdouble farVal); void glDepthRangef(GLfloat nearVal, GLfloat farVal);PARAMETERS

nearVal Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. farVal Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1.DESCRIPTION

After clipping and division by w, depth coordinates range fromto 1, corresponding to the near and far clipping planes. glDepthRange specifies a linear mapping of the normalized depth coordinates in this range to window depth coordinates. Regardless of the actual depth buffer implementation, window coordinate depth values are treated as though they range from 0 through 1 (like color components). Thus, the values accepted by glDepthRange are both clamped to this range before they are accepted. The setting of (0,1) maps the near plane to 0 and the far plane to 1. With this mapping, the depth buffer range is fully utilized.-1NOTES

It is not necessary that nearVal be less than farVal. Reverse mappings such as nearVal = 1, and farVal = 0 are acceptable. The type of the nearVal and farVal parameters was changed from GLclampf to GLfloat for glDepthRangef and from GLclampd to GLdouble for glDepthRange. This change is transparent to user code and is described in detail on the removedTypes() page.ASSOCIATED GETS

glGet() with argument GL_DEPTH_RANGESEE ALSO

glDepthFunc(), glPolygonOffset(), glViewport(), removedTypes()COPYRIGHT

Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. [FIXME: source] 05/30/2012 GLDEPTHRANGE(3G)