Lines Matching refs:textureArrayIndex
26 for (u32 textureArrayIndex = 0; textureArrayIndex < demo::MAX_TEXTURES_NUM; in RenderSystemDrawing() local
27 textureArrayIndex++) in RenderSystemDrawing()
29 m_TextureIdArray[textureArrayIndex] = 0; in RenderSystemDrawing()
30 m_TotalTexturedTrianglesNumArray[textureArrayIndex] = 0; in RenderSystemDrawing()
80 … for (u32 textureArrayIndex = 0; textureArrayIndex < demo::MAX_TEXTURES_NUM; textureArrayIndex++) in InitializeTexturedTriangles() local
82 m_TotalTexturedTrianglesNumArray[textureArrayIndex] = 0; in InitializeTexturedTriangles()
84 m_TexturedTrianglesRenderDataArray[textureArrayIndex].Initialize(); in InitializeTexturedTriangles()
85 … m_TexturedTrianglesRenderDataArray[textureArrayIndex].InitializeVertexBuffers(vertexAttributes, in InitializeTexturedTriangles()
89 … for (u32 textureArrayIndex = 0; textureArrayIndex < demo::MAX_TEXTURES_NUM; textureArrayIndex++) in InitializeTexturedTriangles() local
91 m_TextureIdArray[textureArrayIndex] = 0; in InitializeTexturedTriangles()
116 for (u32 textureArrayIndex = 0; textureArrayIndex < MAX_TEXTURES_NUM; textureArrayIndex++) in Finalize() local
118 m_TotalTexturedTrianglesNumArray[textureArrayIndex] = 0; in Finalize()
119 m_TexturedTrianglesRenderDataArray[textureArrayIndex].Finalize(); in Finalize()
123 for (u32 textureArrayIndex = 0; textureArrayIndex < MAX_TEXTURES_NUM; textureArrayIndex++) in Finalize() local
125 GLuint textureId = m_TextureIdArray[textureArrayIndex]; in Finalize()
129 m_TextureIdArray[textureArrayIndex] = 0; in Finalize()
146 for (u32 textureArrayIndex = 0; textureArrayIndex < MAX_TEXTURES_NUM; textureArrayIndex++) in SetViewport() local
148 m_TexturedTrianglesRenderDataArray[textureArrayIndex].SetWindowSize(width, height); in SetViewport()
317 u32 textureArrayIndex = 0; in GenerateTexture() local
319 if (! FindTextureArrayIndex(emptyTextureId, textureArrayIndex) ) in GenerateTexture()
336 m_TextureIdArray[textureArrayIndex] = textureId; in GenerateTexture()
358 u32 textureArrayIndex = 0; in DeleteTexture() local
359 if ( FindTextureArrayIndex(textureId, textureArrayIndex) ) in DeleteTexture()
364 m_TextureIdArray[textureArrayIndex] = 0; in DeleteTexture()
381 for (u32 textureArrayIndex = 0; textureArrayIndex < demo::MAX_TEXTURES_NUM; in FindTextureArrayIndex() local
382 textureArrayIndex++) in FindTextureArrayIndex()
384 if ( textureId == m_TextureIdArray[textureArrayIndex] ) in FindTextureArrayIndex()
386 arrayIndex = textureArrayIndex; in FindTextureArrayIndex()
449 u32 textureArrayIndex = 0; in FillTexturedTriangle() local
450 if ( ( textureId == 0 ) || (! FindTextureArrayIndex(textureId, textureArrayIndex) ) ) in FillTexturedTriangle()
456 if ( m_TotalTexturedTrianglesNumArray[textureArrayIndex] >= m_MaxTexturedTrianglesNum ) in FillTexturedTriangle()
460 m_TotalTexturedTrianglesNumArray[textureArrayIndex], m_MaxTexturedTrianglesNum); in FillTexturedTriangle()
466 … demo::TrianglesRenderData& renderData = m_TexturedTrianglesRenderDataArray[textureArrayIndex]; in FillTexturedTriangle()
505 m_TotalTexturedTrianglesNumArray[textureArrayIndex] += 1; in FillTexturedTriangle()
534 … for (u32 textureArrayIndex = 0; textureArrayIndex < demo::MAX_TEXTURES_NUM; textureArrayIndex++) in FlushTexturedPrimitives() local
536 if ( m_TextureIdArray[textureArrayIndex] != 0 ) in FlushTexturedPrimitives()
538 … demo::TrianglesRenderData& renderData = m_TexturedTrianglesRenderDataArray[textureArrayIndex]; in FlushTexturedPrimitives()
542 GLuint textureId = m_TextureIdArray[textureArrayIndex]; in FlushTexturedPrimitives()
551 m_TotalTexturedTrianglesNumArray[textureArrayIndex] = 0; in FlushTexturedPrimitives()