名称
glIsQuery —确定名称是否对应于查询对象
C 规范
GLboolean glIsQuery( GLuint id);
参数
id
指定一个值,该值可以是查询对象的名称。
描述
如果id当前是查询对象的名称,则glIsQuery返回GL_TRUE。如果id为零,或者为非当前非查询对象名称的非零值,或者发生错误,则glIsQuery返回GL_FALSE。
glGenQueries返回的但尚未通过调用glBeginQuery与查询对象相关联的名称不是查询对象的名称。
API 支持版本
| 函数名 | 2.0 | 3.0 | 3.1 | 3.2 |
|---|---|---|---|---|
| glIsQuery | - | ✔ | ✔ | ✔ |
另见
glBeginQuery, glDeleteQueries, glEndQuery, glGenQueries
版权
https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glIsQuery.xhtml
Copyright © 2005 Addison-Wesley. Copyright © 2010-2015 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
本文详细介绍了OpenGL中的glIsQuery函数,用于判断一个给定的名字是否为查询对象的名称。如果名字是当前查询对象的名称,函数将返回GL_TRUE;反之则返回GL_FALSE。文章还提到了函数的参数、使用条件及API支持版本。

1736

被折叠的 条评论
为什么被折叠?



