Lines Matching refs:GR_GL
166 GR_GL(ActiveTexture(GR_GL_TEXTURE0 + SPARE_TEX_UNIT));
169 GR_GL(GenFramebuffers(1, &testFBO));
170 GR_GL(BindFramebuffer(GR_GL_FRAMEBUFFER, testFBO));
172 GR_GL(GenTextures(1, &testRTTex));
173 GR_GL(BindTexture(GR_GL_TEXTURE_2D, testRTTex));
176 GR_GL(TexParameteri(GR_GL_TEXTURE_2D, GR_GL_TEXTURE_MIN_FILTER, GR_GL_NEAREST));
177 GR_GL(TexImage2D(GR_GL_TEXTURE_2D, 0, GR_GL_RGBA, w, h,
179 GR_GL(BindTexture(GR_GL_TEXTURE_2D, 0));
180 GR_GL(FramebufferTexture2D(GR_GL_FRAMEBUFFER, GR_GL_COLOR_ATTACHMENT0,
182 GrGLenum status = GR_GL(CheckFramebufferStatus(GR_GL_FRAMEBUFFER));
183 GR_GL(DeleteFramebuffers(1, &testFBO));
184 GR_GL(DeleteTextures(1, &testRTTex));
186 GR_GL(ActiveTexture(savedTexUnit));
187 GR_GL(BindFramebuffer(GR_GL_FRAMEBUFFER, savedFBO));
503 GR_GL(Enable(GR_GL_BLEND));
506 GR_GL(Disable(GR_GL_DEPTH_TEST));
507 GR_GL(DepthMask(GR_GL_FALSE));
509 GR_GL(Disable(GR_GL_CULL_FACE));
510 GR_GL(FrontFace(GR_GL_CCW));
513 GR_GL(Disable(GR_GL_DITHER));
515 GR_GL(Disable(GR_GL_LINE_SMOOTH));
516 GR_GL(Disable(GR_GL_POINT_SMOOTH));
517 GR_GL(Disable(GR_GL_MULTISAMPLE));
522 GR_GL(ColorMask(GR_GL_TRUE, GR_GL_TRUE, GR_GL_TRUE, GR_GL_TRUE));
526 GR_GL(LineWidth(1));
536 GR_GL(BlendColor(0,0,0,0));
553 GR_GL(Disable(GR_GL_SCISSOR_TEST));
565 GR_GL(ColorMask(GR_GL_TRUE, GR_GL_TRUE, GR_GL_TRUE, GR_GL_TRUE));
748 GR_GL(GenTextures(1, &glDesc.fTextureID));
765 GR_GL(PixelStorei(GR_GL_UNPACK_ROW_LENGTH,
800 GR_GL(BindTexture(GR_GL_TEXTURE_2D, glDesc.fTextureID));
801 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
804 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
807 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
810 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
814 GR_GL(PixelStorei(GR_GL_UNPACK_ALIGNMENT, glDesc.fUploadByteCount));
822 GR_GL(CompressedTexImage2D(GR_GL_TEXTURE_2D, 0, glDesc.fUploadFormat,
829 GR_GL(TexImage2D(GR_GL_TEXTURE_2D, 0, internalFormat,
832 GR_GL(TexSubImage2D(GR_GL_TEXTURE_2D, 0, 0, 0, desc.fWidth,
855 GR_GL(TexSubImage2D(GR_GL_TEXTURE_2D, 0, 0, desc.fHeight, desc.fWidth,
869 GR_GL(TexSubImage2D(GR_GL_TEXTURE_2D, 0, desc.fWidth, 0, extraW,
881 GR_GL(TexSubImage2D(GR_GL_TEXTURE_2D, 0, desc.fWidth, desc.fHeight,
887 GR_GL(TexImage2D(GR_GL_TEXTURE_2D, 0, internalFormat, glDesc.fAllocWidth,
918 GR_GL(GenFramebuffers(1, &rtIDs.fTexFBOID));
924 GR_GL(GenFramebuffers(1, &rtIDs.fRTFBOID));
926 GR_GL(GenRenderbuffers(1, &rtIDs.fMSColorRenderbufferID));
929 GR_GL(DeleteRenderbuffers(1, &rtIDs.fMSColorRenderbufferID));
930 GR_GL(DeleteTextures(1, &glDesc.fTextureID));
931 GR_GL(DeleteFramebuffers(1, &rtIDs.fTexFBOID));
932 GR_GL(DeleteFramebuffers(1, &rtIDs.fRTFBOID));
939 GR_GL(GenRenderbuffers(1, &rtIDs.fStencilRenderbufferID));
946 GR_GL(BindTexture(GR_GL_TEXTURE_2D, 0));
953 GR_GL(BindRenderbuffer(GR_GL_RENDERBUFFER,
975 GR_GL(BindRenderbuffer(GR_GL_RENDERBUFFER,
988 GR_GL(BindFramebuffer(GR_GL_FRAMEBUFFER, rtIDs.fTexFBOID));
993 GR_GL(FramebufferTexture2D(GR_GL_FRAMEBUFFER,
998 GrGLenum status = GR_GL(CheckFramebufferStatus(GR_GL_FRAMEBUFFER));
1004 GR_GL(BindFramebuffer(GR_GL_FRAMEBUFFER, rtIDs.fRTFBOID));
1008 GR_GL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1016 GR_GL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1023 GR_GL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1029 status = GR_GL(CheckFramebufferStatus(GR_GL_FRAMEBUFFER));
1037 GR_GL(FramebufferRenderbuffer(GR_GL_FRAMEBUFFER,
1057 GR_GL(DeleteRenderbuffers(1, &rtIDs.fStencilRenderbufferID));
1060 GR_GL(DeleteRenderbuffers(1, &rtIDs.fMSColorRenderbufferID));
1063 GR_GL(DeleteFramebuffers(1, &rtIDs.fRTFBOID));
1066 GR_GL(DeleteFramebuffers(1, &rtIDs.fTexFBOID));
1068 GR_GL(DeleteTextures(1, &glDesc.fTextureID));
1097 GR_GL(GenBuffers(1, &id));
1099 GR_GL(BindBuffer(GR_GL_ARRAY_BUFFER, id));
1106 GR_GL(DeleteBuffers(1, &id));
1121 GR_GL(GenBuffers(1, &id));
1123 GR_GL(BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, id));
1129 GR_GL(DeleteBuffers(1, &id));
1162 GR_GL(Enable(GR_GL_SCISSOR_TEST));
1167 GR_GL(Disable(GR_GL_SCISSOR_TEST));
1191 GR_GL(ColorMask(GR_GL_TRUE,GR_GL_TRUE,GR_GL_TRUE,GR_GL_TRUE));
1193 GR_GL(ClearColor(GrColorUnpackR(color)/255.f,
1197 GR_GL(Clear(GR_GL_COLOR_BUFFER_BIT));
1208 GR_GL(Disable(GR_GL_SCISSOR_TEST));
1211 GR_GL(StencilMask(mask));
1212 GR_GL(ClearStencil(value));
1213 GR_GL(Clear(GR_GL_STENCIL_BUFFER_BIT));
1233 GR_GL(StencilMask(clipStencilMask));
1234 GR_GL(ClearStencil(0));
1235 GR_GL(Clear(GR_GL_STENCIL_BUFFER_BIT));
1265 GR_GL(BindFramebuffer(GR_GL_READ_FRAMEBUFFER, tgt->textureFBOID()));
1276 GR_GL(ReadPixels(readRect.fLeft, readRect.fBottom,
1307 GR_GL(BindFramebuffer(GR_GL_FRAMEBUFFER, rt->renderFBOID()));
1312 GrGLenum status = GR_GL(CheckFramebufferStatus(GR_GL_FRAMEBUFFER));
1376 GR_GL(DrawElements(gPrimitiveType2GLMode[type], indexCount,
1406 GR_GL(DrawArrays(gPrimitiveType2GLMode[type], 0, vertexCount));
1426 GR_GL(BindFramebuffer(GR_GL_READ_FRAMEBUFFER,
1428 GR_GL(BindFramebuffer(GR_GL_DRAW_FRAMEBUFFER,
1444 GR_GL(Enable(GR_GL_SCISSOR_TEST));
1445 GR_GL(Scissor(r.fLeft, r.fBottom,
1447 GR_GL(ResolveMultisampleFramebuffer());
1458 GR_GL(BlitFramebuffer(r.fLeft, r.fBottom, right, top,
1530 GR_GL(Disable(GR_GL_STENCIL_TEST));
1532 GR_GL(Enable(GR_GL_STENCIL_TEST));
1602 GR_GL(StencilFuncSeparate(GR_GL_FRONT, frontFunc, frontRef, frontMask));
1603 GR_GL(StencilMaskSeparate(GR_GL_FRONT, frontWriteMask));
1604 GR_GL(StencilFuncSeparate(GR_GL_BACK, backFunc, backRef, backMask));
1605 GR_GL(StencilMaskSeparate(GR_GL_BACK, backWriteMask));
1606 GR_GL(StencilOpSeparate(GR_GL_FRONT, grToGLStencilOp[settings->fFrontFailOp],
1610 GR_GL(StencilOpSeparate(GR_GL_BACK, grToGLStencilOp[settings->fBackFailOp],
1614 GR_GL(StencilFunc(frontFunc, frontRef, frontMask));
1615 GR_GL(StencilMask(frontWriteMask));
1616 GR_GL(StencilOp(grToGLStencilOp[settings->fFrontFailOp],
1648 GR_GL(Enable(GR_GL_LINE_SMOOTH));
1651 GR_GL(Disable(GR_GL_LINE_SMOOTH));
1656 GR_GL(Disable(GR_GL_MULTISAMPLE));
1663 GR_GL(Disable(GR_GL_MULTISAMPLE));
1666 GR_GL(Enable(GR_GL_MULTISAMPLE));
1678 GR_GL(Enable(GR_GL_BLEND));
1683 GR_GL(BlendFunc(gXfermodeCoeff2Blend[kSA_BlendCoeff],
1692 GR_GL(Disable(GR_GL_BLEND));
1694 GR_GL(Enable(GR_GL_BLEND));
1701 GR_GL(BlendFunc(gXfermodeCoeff2Blend[srcCoeff],
1716 GR_GL(BlendColor(c[0], c[1], c[2], c[3]));
1748 GR_GL(BindTexture(GR_GL_TEXTURE_2D, nextTexture->textureID()));
1774 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
1777 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
1783 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
1789 GR_GL(TexParameteri(GR_GL_TEXTURE_2D,
1814 GR_GL(Enable(GR_GL_DITHER));
1816 GR_GL(Disable(GR_GL_DITHER));
1828 GR_GL(ColorMask(mask, mask, mask, mask));
1834 GR_GL(Enable(GR_GL_CULL_FACE));
1835 GR_GL(CullFace(GR_GL_BACK));
1838 GR_GL(Enable(GR_GL_CULL_FACE));
1839 GR_GL(CullFace(GR_GL_FRONT));
1842 GR_GL(Disable(GR_GL_CULL_FACE));
1966 GR_GL(ActiveTexture(GR_GL_TEXTURE0 + unit));
1973 GR_GL(ActiveTexture(GR_GL_TEXTURE0 + SPARE_TEX_UNIT));
2038 GR_GL(BindBuffer(GR_GL_ARRAY_BUFFER, vbuf->bufferID()));
2066 GR_GL(BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, ibuf->bufferID()));