Home | History | Annotate | Download | only in main

Lines Matching defs:actx

1543 check_vbo(AEcontext *actx, struct gl_buffer_object *vbo)
1548 for (i = 0; i < actx->nr_vbos; i++)
1549 if (actx->vbo[i] == vbo)
1551 assert(actx->nr_vbos < VERT_ATTRIB_MAX);
1552 actx->vbo[actx->nr_vbos++] = vbo;
1566 AEcontext *actx = AE_CONTEXT(ctx);
1567 AEarray *aa = actx->arrays; /* non-indexed arrays (ex: glNormal) */
1568 AEattrib *at = actx->attribs; /* indexed arrays (ex: glMultiTexCoord) */
1572 actx->nr_vbos = 0;
1579 check_vbo(actx, aa->binding->BufferObj);
1587 check_vbo(actx, aa->binding->BufferObj);
1595 check_vbo(actx, aa->binding->BufferObj);
1603 check_vbo(actx, aa->binding->BufferObj);
1611 check_vbo(actx, aa->binding->BufferObj);
1619 check_vbo(actx, aa->binding->BufferObj);
1637 check_vbo(actx, at->binding->BufferObj);
1669 check_vbo(actx, at->binding->BufferObj);
1683 check_vbo(actx, aa->binding->BufferObj);
1690 check_vbo(actx, aa->binding->BufferObj);
1694 check_vbo(actx, vao->IndexBufferObj);
1696 assert(at - actx->attribs <= VERT_ATTRIB_MAX);
1697 assert(aa - actx->arrays < 32);
1701 actx->dirty_state = false;
1712 AEcontext *actx = AE_CONTEXT(ctx);
1715 if (actx->mapped_vbos)
1718 if (actx->dirty_state)
1721 for (i = 0; i < actx->nr_vbos; i++)
1723 actx->vbo[i]->Size,
1725 actx->vbo[i],
1728 if (actx->nr_vbos)
1729 actx->mapped_vbos = GL_TRUE;
1739 AEcontext *actx = AE_CONTEXT(ctx);
1742 if (!actx->mapped_vbos)
1745 assert (!actx->dirty_state);
1747 for (i = 0; i < actx->nr_vbos; i++)
1748 ctx->Driver.UnmapBuffer(ctx, actx->vbo[i], MAP_INTERNAL);
1750 actx->mapped_vbos = GL_FALSE;
1764 const AEcontext *actx = AE_CONTEXT(ctx);
1778 if (actx->dirty_state) {
1779 assert(!actx->mapped_vbos);
1784 do_map = actx->nr_vbos && !actx->mapped_vbos;
1790 for (at = actx->attribs; at->func; at++) {
1799 for (aa = actx->arrays; aa->offset != -1 ; aa++) {
1815 AEcontext *actx = AE_CONTEXT(ctx);
1828 assert(!actx->mapped_vbos);
1829 actx->dirty_state = true;