Lines Matching refs:pDispatch
320 * @param pDispatch
324 SPUDispatchTable *pDispatch)
340 pBlitter->pDispatch = pDispatch;
352 pBlitter->CtxInfo.Base.id = pDispatch->CreateContext("", pCtxBase->Base.visualBits, pCtxBase->Base.id);
370 CrGlslInit(&pBlitter->LocalGlslCache, pDispatch);
408 pBlitter->pDispatch->DestroyContext(pBlitter->CtxInfo.Base.id);
449 pBlitter->pDispatch->Flush();
451 pBlitter->pDispatch->MakeCurrent(pMural->Base.id, pBlitter->i32MakeCurrentUserData, pBlitter->CtxInfo.Base.id);
463 pBlitter->pDispatch->BindFramebufferEXT(GL_READ_FRAMEBUFFER, pBlitter->idFBO);
464 pBlitter->pDispatch->FramebufferTexture2DEXT(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, pSrc->target, pSrc->hwid, 0);
465 pBlitter->pDispatch->ReadBuffer(GL_COLOR_ATTACHMENT0);
530 pBlitter->pDispatch->BlitFramebufferEXT(srcX1, srcY1, srcX2, srcY2,
701 pBlitter->pDispatch->MatrixMode(GL_PROJECTION);
702 pBlitter->pDispatch->LoadIdentity();
703 pBlitter->pDispatch->Ortho(0, pDstSize->cx, 0, pDstSize->cy, -1, 1);
713 pBlitter->pDispatch->Viewport(0, 0, pBlitter->CurrentSetSize.cx, pBlitter->CurrentSetSize.cy);
755 pBlitter->pDispatch->BindTexture(pSrc->target, pSrc->hwid);
768 pBlitter->pDispatch->EnableClientState(GL_VERTEX_ARRAY);
769 pBlitter->pDispatch->VertexPointer(2, GL_FLOAT, 0, pVerticies);
771 pBlitter->pDispatch->EnableClientState(GL_TEXTURE_COORD_ARRAY);
772 pBlitter->pDispatch->TexCoordPointer(2, GL_FLOAT, 0, pTexCoords);
774 pBlitter->pDispatch->Enable(pSrc->target);
776 pBlitter->pDispatch->DrawArrays(GL_TRIANGLE_FAN, 0, cElements);
778 pBlitter->pDispatch->Disable(pSrc->target);
780 pBlitter->pDispatch->DisableClientState(GL_TEXTURE_COORD_ARRAY);
781 pBlitter->pDispatch->DisableClientState(GL_VERTEX_ARRAY);
796 pBlitter->pDispatch->EnableClientState(GL_VERTEX_ARRAY);
797 pBlitter->pDispatch->VertexPointer(2, GL_FLOAT, 0, pVerticies);
799 pBlitter->pDispatch->EnableClientState(GL_TEXTURE_COORD_ARRAY);
800 pBlitter->pDispatch->TexCoordPointer(2, GL_FLOAT, 0, pTexCoords);
802 pBlitter->pDispatch->Enable(pSrc->target);
804 pBlitter->pDispatch->DrawElements(GL_TRIANGLES, cIndicies, GL_UNSIGNED_BYTE, pIndicies);
806 pBlitter->pDispatch->Disable(pSrc->target);
808 pBlitter->pDispatch->DisableClientState(GL_TEXTURE_COORD_ARRAY);
809 pBlitter->pDispatch->DisableClientState(GL_VERTEX_ARRAY);
812 pBlitter->pDispatch->BindTexture(pSrc->target, 0);
819 const char * pszExtension = (const char*)pBlitter->pDispatch->GetString(GL_EXTENSIONS);
823 pBlitter->pDispatch->GenFramebuffersEXT(1, &pBlitter->idFBO);
847 pBlitter->pDispatch->MatrixMode(GL_TEXTURE);
848 pBlitter->pDispatch->LoadIdentity();
849 pBlitter->pDispatch->MatrixMode(GL_MODELVIEW);
850 pBlitter->pDispatch->LoadIdentity();
874 pBlitter->pDispatch->BindFramebufferEXT(GL_FRAMEBUFFER, 0);
875 pBlitter->pDispatch->DrawBuffer(GL_BACK);
876 pBlitter->pDispatch->ReadBuffer(GL_BACK);
879 pBlitter->pDispatch->Flush();
882 pBlitter->pDispatch->MakeCurrent(0, 0, 0);
902 pBlitter->pDispatch->MakeCurrent(pBlitter->CurrentMural.Base.id, pBlitter->i32MakeCurrentUserData, pBlitter->CtxInfo.Base.id);
932 pBlitter->pDispatch->DrawBuffer(enmDstBuff);
981 pBlitter->pDispatch->BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, 0);
1000 pBlitter->pDispatch->BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, pBlitter->idFBO);
1004 pBlitter->pDispatch->FramebufferTexture2DEXT(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, pDst->target, pDst->hwid, 0);
1006 // pBlitter->pDispatch->FramebufferTexture2DEXT(GL_DRAW_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, 0, 0);
1007 // pBlitter->pDispatch->FramebufferTexture2DEXT(GL_DRAW_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_TEXTURE_2D, 0, 0);
1011 pBlitter->pDispatch->FramebufferTexture2DEXT(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, pDst->target, 0, 0);
1023 pBlitter->pDispatch->SwapBuffers(pBlitter->CurrentMural.Base.id, 0);
1025 pBlitter->pDispatch->Flush();
1094 pBlitter->pDispatch->BindTexture(pSrc->target, pSrc->hwid);
1099 pBlitter->pDispatch->GetTexLevelParameteriv(pSrc->target, 0, GL_TEXTURE_WIDTH, &width);
1100 pBlitter->pDispatch->GetTexLevelParameteriv(pSrc->target, 0, GL_TEXTURE_HEIGHT, &height);
1101 pBlitter->pDispatch->GetTexLevelParameteriv(pSrc->target, 0, GL_TEXTURE_DEPTH, &depth);
1109 pBlitter->pDispatch->GetTexImage(pSrc->target, 0, enmFormat, GL_UNSIGNED_BYTE, pDst->pvData);
1111 pBlitter->pDispatch->BindTexture(pSrc->target, 0);
1147 const char * pszStr = (const char*)pCache->pDispatch->GetString(GL_VERSION);
1230 GLuint uiShader = pCache->pDispatch->CreateShader(GL_FRAGMENT_SHADER);
1237 pCache->pDispatch->ShaderSource(uiShader, 1, &pStrFsShader, NULL);
1239 pCache->pDispatch->CompileShader(uiShader);
1242 pCache->pDispatch->GetShaderiv(uiShader, GL_COMPILE_STATUS, &compiled);
1250 pCache->pDispatch->GetShaderInfoLog(uiShader, 16300, NULL, pBuf);
1265 uiProgram = pCache->pDispatch->CreateProgram();
1272 pCache->pDispatch->AttachShader(uiProgram, uiShader);
1274 pCache->pDispatch->LinkProgram(uiProgram);
1277 pCache->pDispatch->GetProgramiv(uiProgram, GL_LINK_STATUS, &linked);
1284 pCache->pDispatch->GetProgramInfoLog(uiProgram, 16300, NULL, pBuf);
1299 iUniform = pCache->pDispatch->GetUniformLocation(uiProgram, "sampler0");
1306 pCache->pDispatch->Uniform1i(iUniform, 0);
1316 pCache->pDispatch->DeleteShader(uiShader);
1318 pCache->pDispatch->DeleteProgram(uiProgram);
1385 pCache->pDispatch->UseProgram(0);
1399 pCache->pDispatch->UseProgram(uiProg);
1422 pCache->pDispatch->UseProgram(uiProg);
1441 pCache->pDispatch->DeleteProgram(pCache->uNoAlpha2DProg);
1451 pCache->pDispatch->DeleteProgram(pCache->uNoAlpha2DRectProg);
1480 pBlitter->pDispatch->GenBuffersARB(1, &pTex->idPBO);
1487 pBlitter->pDispatch->BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, pTex->idPBO);
1488 pBlitter->pDispatch->BufferDataARB(GL_PIXEL_PACK_BUFFER_ARB,
1491 pBlitter->pDispatch->BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, 0);
1497 pBlitter->pDispatch->GenTextures(1, &tex);
1504 pBlitter->pDispatch->BindTexture(enmTarget, tex);
1505 pBlitter->pDispatch->TexParameteri(enmTarget, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
1506 pBlitter->pDispatch->TexParameteri(enmTarget, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
1507 pBlitter->pDispatch->TexParameteri(enmTarget, GL_TEXTURE_WRAP_S, GL_CLAMP);
1508 pBlitter->pDispatch->TexParameteri(enmTarget, GL_TEXTURE_WRAP_T, GL_CLAMP);
1509 pBlitter->pDispatch->TexImage2D(enmTarget, 0, GL_RGBA8,
1515 pBlitter->pDispatch->BindTexture(enmTarget, 0);
1563 pBlitter->pDispatch->BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, pTex->idPBO);
1564 pBlitter->pDispatch->UnmapBufferARB(GL_PIXEL_PACK_BUFFER_ARB);
1565 pBlitter->pDispatch->BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, 0);
1593 pBlitter->pDispatch->BindTexture(pTex->Tex.target, fInverted ? pTex->idInvertTex : pTex->Tex.hwid);
1595 pBlitter->pDispatch->BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, pTex->idPBO);
1601 pBlitter->pDispatch->UnmapBufferARB(GL_PIXEL_PACK_BUFFER_ARB);
1614 pBlitter->pDispatch->BindTexture(pTex->Tex.target, 0);
1623 pBlitter->pDispatch->GetTexImage(GL_TEXTURE_2D, 0, enmFormat, GL_UNSIGNED_BYTE, pvData);
1626 pBlitter->pDispatch->BindTexture(pTex->Tex.target, 0);
1630 pvData = pBlitter->pDispatch->MapBufferARB(GL_PIXEL_PACK_BUFFER_ARB, GL_READ_ONLY);
1637 pBlitter->pDispatch->BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, 0);
1752 pBlitter->pDispatch->DeleteBuffersARB(1, &pTex->idPBO);
1763 pBlitter->pDispatch->DeleteTextures(1, &pTex->idInvertTex);
1904 pBlitter->pDispatch->DeleteTextures(1, &pTexture->Tex.hwid);
2010 pTex->pBlitter->pDispatch->DeleteTextures(1, &pTex->pScaledCache->Tex.hwid);