Home | History | Annotate | Download | only in OpenglCodecCommon

Lines Matching refs:m_tex

62     memset(m_tex.unit, 0, sizeof(m_tex.unit));
63 m_tex.activeUnit = &m_tex.unit[0];
64 m_tex.textures = NULL;
65 m_tex.numTextures = 0;
66 m_tex.allocTextures = 0;
249 m_tex.activeUnit = &m_tex.unit[unit];
255 return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]);
262 m_tex.activeUnit->enables |= (1u << TEXTURE_2D);
265 m_tex.activeUnit->enables |= (1u << TEXTURE_EXTERNAL);
274 m_tex.activeUnit->enables &= ~(1u << TEXTURE_2D);
277 m_tex.activeUnit->enables &= ~(1u << TEXTURE_EXTERNAL);
284 unsigned int enables = m_tex.activeUnit->enables;
307 if (m_tex.textures) {
308 texrec = (TextureRec*)bsearch(&texture, m_tex.textures,
309 m_tex.numTextures, sizeof(TextureRec), compareTexId);
324 m_tex.activeUnit->texture[TEXTURE_2D] = texture;
327 m_tex.activeUnit->texture[TEXTURE_EXTERNAL] = texture;
341 if (m_tex.numTextures == m_tex.allocTextures) {
345 if (MAX_TEXTURES - m_tex.allocTextures >= m_tex.allocTextures) {
346 newAlloc = MAX(4, 2 * m_tex.allocTextures);
348 if (m_tex.allocTextures == MAX_TEXTURES) {
354 TextureRec* newTextures = (TextureRec*)realloc(m_tex.textures,
360 m_tex.textures = newTextures;
361 m_tex.allocTextures = newAlloc;
364 TextureRec* tex = m_tex.textures + m_tex.numTextures;
366 while (tex != m_tex.textures && id < prev->id) {
371 m_tex.numTextures++;
380 return m_tex.activeUnit->texture[TEXTURE_2D];
382 return m_tex.activeUnit->texture[TEXTURE_EXTERNAL];
397 texrec = (TextureRec*)bsearch(texture, m_tex.textures,
398 m_tex.numTextures, sizeof(TextureRec), compareTexId);
400 const TextureRec* end = m_tex.textures + m_tex.numTextures;
403 m_tex.numTextures--;
405 for (TextureUnit* unit = m_tex.unit;
406 unit != m_tex.unit + MAX_TEXTURE_UNITS;