glIsTexture

glIsTexture是OpenGL的一個函式,用於判斷一個值是否是紋理的ID。

基本介紹

  • 外文名:glIsTexture
  • 屬性:函式
glIsTexture
函式原型:GLboolean glIsTexture(GLuint texture);
下面是MSDN中的說明:
Parameters
textureA value that is the name of a texture.
Remarks
If the texture parameter is currently the name of a texture, the glIsTexture function returns GL_TRUE. The glIsTexture function returns GL_FALSE is texture is zero. It also returns GL_FALSE if it is a non-zero value that is not currently the name of a texture, or if an error occurs.
You cannot include calls to glIsTexture in display lists.
Note
The glIsTexture function is only available in OpenGL version 1.1 or later.
Error Codes
The following is the error code generated and its condition.
Error code
Condition
GL_INVALID_OPERATION
glIsTexture was called between a call to glBegin and the corresponding call to glEnd
依賴項
頭檔案:gl.h or gl2.h
庫:Opengl32.lib

相關詞條

熱門詞條

聯絡我們