当前位置:首页 科普知识 glClearIndex

glClearIndex

发布时间:2023-09-06 19:15:17

glClearIndex指定glClear用于清除颜色索引缓冲区的索引。c没有夹紧。相反,c被转换成一个定点值,其精度在二进制点的右边。然后,该值的整数部分用2m-1屏蔽,其中m是存储在帧缓冲区中的颜色索引中的位数。

glClearIndex详细介绍

glClearIndex指定glClear用于清除颜色索引缓冲区的索引。c没有夹紧。相反,c被转换成一个定点值,其精度在二进制点的右边。然后,该值的整数部分用2m-1屏蔽,其中m是存储在帧缓冲区中的颜色索引中的位数。

glClearIndex

glClearIndexNAME

glClearIndex - specify the clear value for the color index buffers

C SPECIFICATION

glClearIndex

void glClearIndex( GLfloat c )

glClearIndexPARAMETERS

c ? Specifies the index used when the color index buffers are cleared. The defaultvalue is zero.

glClearIndexERRORS

GL_INVALID_OPERATION is generated if glClearIndex is called between a call to glBegin and the corresponding call to glEnd.

ASSOCIATED GETS

glClearIndex

glGet with argument GL_INDEX_CLEAR_VALUE

glGet with argument GL_INDEX_BITS

SEE ALSO

"glClear"

温馨提示:
本文【glClearIndex】由作者 爱百科 转载提供。 该文观点仅代表作者本人, 自学教育网 信息发布平台,仅提供信息存储空间服务, 若存在侵权问题,请及时联系管理员或作者进行删除。
(c)2008-2025 自学教育网 All Rights Reserved 汕头市灵创科技有限公司
粤ICP备2024240640号-6