Lines Matching refs:count

311         const GLvoid *pointer, const buffer_t* bo, GLsizei count)
331 this->bounds = count;
379 size_t count = VERTEX_BUFFER_SIZE + VERTEX_CACHE_SIZE;
383 } while (--count);
390 size_t count = VERTEX_BUFFER_SIZE + VERTEX_CACHE_SIZE;
394 } while (--count);
531 void drawPrimitivesPoints(ogles_context_t* c, GLint first, GLsizei count)
533 if (ggl_unlikely(count < 1))
542 GLsizei num = count > vcs ? vcs : count;
546 count -= num;
557 } while (count);
562 void drawPrimitivesLineStrip(ogles_context_t* c, GLint first, GLsizei count)
564 if (ggl_unlikely(count < 2))
571 count -= 1;
580 GLsizei num = count > vcs ? vcs : count;
583 count -= num;
598 } while (count);
601 void drawPrimitivesLineLoop(ogles_context_t* c, GLint first, GLsizei count)
603 if (ggl_unlikely(count < 2))
605 drawPrimitivesLineStrip(c, first, count);
606 if (ggl_likely(count >= 3)) {
616 void drawPrimitivesLines(ogles_context_t* c, GLint first, GLsizei count)
618 if (ggl_unlikely(count < 2))
627 GLsizei num = count > vcs ? vcs : count;
631 count -= num;
643 } while (count >= 2);
649 GLint first, GLsizei count, int winding)
654 if (ggl_unlikely(count < 3))
661 count -= 2;
674 GLsizei num = count > vcs ? vcs : count;
677 count -= num;
689 if (count) {
699 } while (count > 0);
703 GLint first, GLsizei count) {
704 drawPrimitivesTriangleFanOrStrip(c, first, count, 1);
708 GLint first, GLsizei count) {
709 drawPrimitivesTriangleFanOrStrip(c, first, count, 2);
712 void drawPrimitivesTriangles(ogles_context_t* c, GLint first, GLsizei count)
714 if (ggl_unlikely(count < 3))
723 GLsizei num = count > vcs ? vcs : count;
727 count -= num;
739 } while (count >= 3);
763 GLsizei count, const GLvoid *indices)
765 if (ggl_unlikely(count < 1))
773 count--;
774 } while(count);
780 GLsizei count, const GLvoid *indices)
782 if (ggl_unlikely(count < 2))
791 count -= 1;
799 count--;
800 } while (count);
805 GLsizei count, const GLvoid *indices)
807 if (ggl_unlikely(count <= 2)) {
808 drawIndexedPrimitivesLines(c, count, indices);
818 count -= 1;
826 count--;
827 } while (count);
837 GLsizei count, const GLvoid *indices)
839 if (ggl_unlikely(count < 2))
842 count -= 2;
852 count -= 2;
853 } while (count >= 0);
859 GLsizei count, const GLvoid *indices, int winding)
864 if (ggl_unlikely(count < 3))
875 count -= 2;
888 count--;
889 } while (count);
895 GLsizei count, const GLvoid *indices) {
896 drawIndexedPrimitivesTriangleFanOrStrip(c, count, indices, 1);
900 GLsizei count, const GLvoid *indices) {
901 drawIndexedPrimitivesTriangleFanOrStrip(c, count, indices, 2);
905 GLsizei count, const GLvoid *indices)
907 if (ggl_unlikely(count < 3))
910 count -= 3;
924 count -= 3;
925 } while (count >= 0);
938 count -= 3;
939 } while (count >= 0);
964 vertex_t* v, GLint first, GLsizei count)
980 } while (--count);
985 vertex_t* v, GLint first, GLsizei count)
1018 } while (--count);
1343 void glDrawArrays(GLenum mode, GLint first, GLsizei count)
1346 if (count<0) {
1364 if (count == 0 || !c->arrays.vertex.enable)
1376 drawArraysPrims[mode](c, first, count);
1382 c->vc.total = count;
1388 GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
1391 if (count<0) {
1417 if (count == 0 || !c->arrays.vertex.enable)
1436 drawElementsPrims[mode](c, count, indices);
1443 c->vc.total = count;