名稱
glIsTexture-确定一個ID是否與紋理相對應。
C規範
GLboolean glIsTexture(GLuint texture);
參數
texture
指定一個可能是紋理ID的值。
描述
如果texture是一個紋理ID那麼glIsTexture将傳回GL_TRUE。如果texture的值是0或者非0但是不是紋理ID又或者有錯誤生成了glIsTexture都會傳回GL_FALSE。
如果這個texture确實是由glGenTextures生成的,但是還沒有調用glBindTexture來關聯,那麼我們也認為這個texture不是紋理ID
另見
glBindTexture glCopyTexImage2D glDeleteTextures glGenTextures glGet glGetTexParameter glTexImage2D glTexParameter
版權
https://www.khronos.org/registry/OpenGL-Refpages/es2.0/xhtml/glIsTexture.xml
https://blog.csdn.net/flycatdeng
Copyright © 1991-2006 Silicon Graphics, Inc.本文檔的許可是根據SGI Free Software B License.詳見http://oss.sgi.com/projects/FreeB/.
QQ群