Lines Matching refs:oglc

153     OGLContext *oglc = NULL;
182 oglc = OGLSD_MakeOGLContextCurrent(env, srcOps, dstOps);
183 if (oglc == NULL) {
203 return oglc;
210 OGLContext_ResetClip(OGLContext *oglc)
214 RETURN_IF_NULL(oglc);
225 OGLContext_SetRectClip(OGLContext *oglc, OGLSDOps *dstOps,
236 RETURN_IF_NULL(oglc);
269 OGLContext_BeginShapeClip(OGLContext *oglc)
273 RETURN_IF_NULL(oglc);
306 OGLContext_EndShapeClip(OGLContext *oglc, OGLSDOps *dstOps)
311 RETURN_IF_NULL(oglc);
349 OGLContext_ResetComposite(OGLContext *oglc)
353 RETURN_IF_NULL(oglc);
357 if (oglc->compState == sun_java2d_SunGraphics2D_COMP_ALPHA) {
359 } else if (oglc->compState == sun_java2d_SunGraphics2D_COMP_XOR) {
365 oglc->compState = sun_java2d_SunGraphics2D_COMP_ISCOPY;
366 oglc->extraAlpha = 1.0f;
375 OGLContext_SetAlphaComposite(OGLContext *oglc,
381 RETURN_IF_NULL(oglc);
385 if (oglc->compState == sun_java2d_SunGraphics2D_COMP_XOR) {
410 oglc->compState = sun_java2d_SunGraphics2D_COMP_ALPHA;
411 oglc->extraAlpha = extraAlpha;
420 OGLContext_SetXorComposite(OGLContext *oglc, jint xorPixel)
425 RETURN_IF_NULL(oglc);
429 if (oglc->compState == sun_java2d_SunGraphics2D_COMP_ALPHA) {
443 oglc->compState = sun_java2d_SunGraphics2D_COMP_XOR;
444 oglc->xorPixel = xorPixel;
445 oglc->extraAlpha = 1.0f;
452 OGLContext_ResetTransform(OGLContext *oglc)
456 RETURN_IF_NULL(oglc);
472 OGLContext_SetTransform(OGLContext *oglc,
479 RETURN_IF_NULL(oglc);
482 if (oglc->xformMatrix == NULL) {
484 oglc->xformMatrix = (GLdouble *)malloc(arrsize);
485 memset(oglc->xformMatrix, 0, arrsize);
486 oglc->xformMatrix[10] = 1.0;
487 oglc->xformMatrix[15] = 1.0;
491 oglc->xformMatrix[0] = m00;
492 oglc->xformMatrix[1] = m10;
493 oglc->xformMatrix[4] = m01;
494 oglc->xformMatrix[5] = m11;
495 oglc->xformMatrix[12] = m02;
496 oglc->xformMatrix[13] = m12;
499 oglc->xformMatrix[0], oglc->xformMatrix[4],
500 oglc->xformMatrix[12]);
502 oglc->xformMatrix[1], oglc->xformMatrix[5],
503 oglc->xformMatrix[13]);
506 j2d_glLoadMatrixd(oglc->xformMatrix);
569 OGLContext_InitBlitTileTexture(OGLContext *oglc)
573 oglc->blitTextureID =
587 OGLContext_DestroyContextResources(OGLContext *oglc)
591 if (oglc->xformMatrix != NULL) {
592 free(oglc->xformMatrix);
595 if (oglc->blitTextureID != 0) {
596 j2d_glDeleteTextures(1, &oglc->blitTextureID);