[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glClearDepth Subroutine

Purpose

Specifies the clear value for the depth buffer.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glClearDepth(GLclampd Depth)

Parameters

Depth Specifies the depth value used when the depth buffer is cleared. The default value is 0 (zero).

Description

The glClearDepth subroutine specifies the depth value used by the glClear subroutine to clear the depth buffer. Values specified by glClearDepth are clamped to the range [0,1].

Errors

GL_INVALID_OPERATION The glClearDepth subroutine is called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

Associated gets for the glClearDepth subroutine are as follows. (See the glGet subroutine for more information.)

glGet with argument GL_DEPTH_CLEAR_VALUE.

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, glClear subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]