Lines Matching refs:texture
246 GLenum GLClientState::setActiveTextureUnit(GLenum texture) in setActiveTextureUnit() argument
248 GLuint unit = texture - GL_TEXTURE0; in setActiveTextureUnit()
304 GLenum GLClientState::bindTexture(GLenum target, GLuint texture, in bindTexture() argument
309 if (texture != 0) { in bindTexture()
311 texrec = (TextureRec*)bsearch(&texture, m_tex.textures, in bindTexture()
315 if (!(texrec = addTextureRec(texture, target))) { in bindTexture()
327 m_tex.activeUnit->texture[TEXTURE_2D] = texture; in bindTexture()
330 m_tex.activeUnit->texture[TEXTURE_EXTERNAL] = texture; in bindTexture()
383 return m_tex.activeUnit->texture[TEXTURE_2D]; in getBoundTexture()
385 return m_tex.activeUnit->texture[TEXTURE_EXTERNAL]; in getBoundTexture()
399 for (const GLuint* texture = textures; texture != textures + n; texture++) { in deleteTextures() local
400 texrec = (TextureRec*)bsearch(texture, m_tex.textures, in deleteTextures()
412 if (unit->texture[TEXTURE_2D] == *texture) { in deleteTextures()
413 unit->texture[TEXTURE_2D] = 0; in deleteTextures()
414 } else if (unit->texture[TEXTURE_EXTERNAL] == *texture) { in deleteTextures()
415 unit->texture[TEXTURE_EXTERNAL] = 0; in deleteTextures()