Lines Matching refs:texture
248 GLenum GLClientState::setActiveTextureUnit(GLenum texture) in setActiveTextureUnit() argument
250 GLuint unit = texture - GL_TEXTURE0; in setActiveTextureUnit()
306 GLenum GLClientState::bindTexture(GLenum target, GLuint texture, in bindTexture() argument
311 if (texture != 0) { in bindTexture()
313 texrec = (TextureRec*)bsearch(&texture, m_tex.textures, in bindTexture()
317 if (!(texrec = addTextureRec(texture, target))) { in bindTexture()
329 m_tex.activeUnit->texture[TEXTURE_2D] = texture; in bindTexture()
332 m_tex.activeUnit->texture[TEXTURE_EXTERNAL] = texture; in bindTexture()
385 return m_tex.activeUnit->texture[TEXTURE_2D]; in getBoundTexture()
387 return m_tex.activeUnit->texture[TEXTURE_EXTERNAL]; in getBoundTexture()
401 for (const GLuint* texture = textures; texture != textures + n; texture++) { in deleteTextures() local
402 texrec = (TextureRec*)bsearch(texture, m_tex.textures, in deleteTextures()
414 if (unit->texture[TEXTURE_2D] == *texture) { in deleteTextures()
415 unit->texture[TEXTURE_2D] = 0; in deleteTextures()
416 } else if (unit->texture[TEXTURE_EXTERNAL] == *texture) { in deleteTextures()
417 unit->texture[TEXTURE_EXTERNAL] = 0; in deleteTextures()