Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP VISUALIZE-IVL Documentation: HP 9000 Series 700 Computers > Appendix B Appendix B: HP-IVL Reference

glClear

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Clear buffers to preset values.

C Specification

   void glClear(GLbitfield mask)

Parameters

mask

Bitwise OR of masks that indicate the buffers to be cleared. The only supported value for mask is GL_COLOR_BUFFER_BIT.

Description

glClear sets the drawing area of the window to values previously selected by glClearColor.

The pixel ownership test and the scissor test affect the operation of glClear. The scissor box bounds the cleared region.

glClear takes a single argument that indicates which buffer to clear.

The only currently supported value of mask is:

  • GL_COLOR_BUFFER_BIT Indicates the buffers currently enabled for color writing.

Notes

If a buffer is not present, then a glClear directed at that buffer has no effect.

Errors

GL_INVALID_VALUE is generated if any bit other than GL_COLOR_BUFFER_BIT is set in mask.

Associated Gets

glGet (GL_COLOR_CLEAR_VALUE)

See Also

glClearColor, glDrawBuffer, glGet, glScissor.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.