Lines Matching refs:m_tex

63     memset(m_tex.unit, 0, sizeof(m_tex.unit));  in GLClientState()
64 m_tex.activeUnit = &m_tex.unit[0]; in GLClientState()
65 m_tex.textures = NULL; in GLClientState()
66 m_tex.numTextures = 0; in GLClientState()
67 m_tex.allocTextures = 0; in GLClientState()
254 m_tex.activeUnit = &m_tex.unit[unit]; in setActiveTextureUnit()
260 return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]); in getActiveTextureUnit()
267 m_tex.activeUnit->enables |= (1u << TEXTURE_2D); in enableTextureTarget()
270 m_tex.activeUnit->enables |= (1u << TEXTURE_EXTERNAL); in enableTextureTarget()
279 m_tex.activeUnit->enables &= ~(1u << TEXTURE_2D); in disableTextureTarget()
282 m_tex.activeUnit->enables &= ~(1u << TEXTURE_EXTERNAL); in disableTextureTarget()
289 unsigned int enables = m_tex.activeUnit->enables; in getPriorityEnabledTarget()
312 if (m_tex.textures) { in bindTexture()
313 texrec = (TextureRec*)bsearch(&texture, m_tex.textures, in bindTexture()
314 m_tex.numTextures, sizeof(TextureRec), compareTexId); in bindTexture()
329 m_tex.activeUnit->texture[TEXTURE_2D] = texture; in bindTexture()
332 m_tex.activeUnit->texture[TEXTURE_EXTERNAL] = texture; in bindTexture()
346 if (m_tex.numTextures == m_tex.allocTextures) { in addTextureRec()
350 if (MAX_TEXTURES - m_tex.allocTextures >= m_tex.allocTextures) { in addTextureRec()
351 newAlloc = MAX(4, 2 * m_tex.allocTextures); in addTextureRec()
353 if (m_tex.allocTextures == MAX_TEXTURES) { in addTextureRec()
359 TextureRec* newTextures = (TextureRec*)realloc(m_tex.textures, in addTextureRec()
365 m_tex.textures = newTextures; in addTextureRec()
366 m_tex.allocTextures = newAlloc; in addTextureRec()
369 TextureRec* tex = m_tex.textures + m_tex.numTextures; in addTextureRec()
371 while (tex != m_tex.textures && id < prev->id) { in addTextureRec()
376 m_tex.numTextures++; in addTextureRec()
385 return m_tex.activeUnit->texture[TEXTURE_2D]; in getBoundTexture()
387 return m_tex.activeUnit->texture[TEXTURE_EXTERNAL]; in getBoundTexture()
402 texrec = (TextureRec*)bsearch(texture, m_tex.textures, in deleteTextures()
403 m_tex.numTextures, sizeof(TextureRec), compareTexId); in deleteTextures()
405 const TextureRec* end = m_tex.textures + m_tex.numTextures; in deleteTextures()
408 m_tex.numTextures--; in deleteTextures()
410 for (TextureUnit* unit = m_tex.unit; in deleteTextures()
411 unit != m_tex.unit + MAX_TEXTURE_UNITS; in deleteTextures()