Lines Matching refs:count
394 void GLEncoder::sendVertexData(unsigned int first, unsigned int count)
417 unsigned int datalen = state->elementSize * count;
509 void GLEncoder::s_glDrawArrays(void *self, GLenum mode, GLint first, GLsizei count)
513 ctx->sendVertexData(first, count);
514 ctx->m_glDrawArrays_enc(ctx, mode, /*first*/ 0, count);
517 void GLEncoder::s_glDrawElements(void *self, GLenum mode, GLsizei count, GLenum type, const void *indices)
522 SET_ERROR_IF(count<0, GL_INVALID_VALUE);
546 ctx->sendVertexData(0, count);
548 ctx->glDrawElementsOffset(ctx, mode, count, type, (GLuint)indices);
563 GLUtils::minmax<unsigned char>((unsigned char *)indices, count, &minIndex, &maxIndex);
565 adjustedIndices = ctx->m_fixedBuffer.alloc(glSizeof(type) * count);
568 count, -minIndex);
573 GLUtils::minmax<unsigned short>((unsigned short *)indices, count, &minIndex, &maxIndex);
575 adjustedIndices = ctx->m_fixedBuffer.alloc(glSizeof(type) * count);
578 count, -minIndex);
586 ctx->glDrawElementsData(ctx, mode, count, type, adjustedIndices,
587 count * glSizeof(type));