Home | History | Annotate | Download | only in libGLESv2

Lines Matching refs:translated

273 GLenum IndexDataManager::prepareIndexData(GLenum mode, GLenum type, GLuint start, GLuint end, GLsizei count, Buffer *buffer, const void *indices, TranslatedIndexData *translated, bool primitiveRestart)
293 computeRange(type, indices, count, &translated->minIndex, &translated->maxIndex, restartIndices);
301 int vertexPerPrimitive = recomputePrimitiveCount(mode, count, *restartIndices, &translated->primitiveCount);
309 int convertCount = translated->primitiveCount * vertexPerPrimitive;
324 translated->indexBuffer = streamingBuffer->getResource();
325 translated->indexOffset = static_cast<unsigned int>(streamOffset);
330 translated->indexBuffer = staticBuffer;
331 translated->indexOffset = static_cast<unsigned int>(offset);
350 translated->indexBuffer = streamingBuffer->getResource();
351 translated->indexOffset = static_cast<unsigned int>(streamOffset);
354 if(translated->minIndex < start || translated->maxIndex > end)
356 ERR("glDrawRangeElements: out of range access. Range provided: [%d -> %d]. Range used: [%d -> %d].", start, end, translated->minIndex, translated->maxIndex);