21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 #ifndef HEADLESS 27 28 #include <stdlib.h> 29 #include <string.h> 30 31 #include "sun_java2d_SunGraphics2D.h" 32 33 #include "jlong.h" 34 #include "jni_util.h" 35 #include "OGLContext.h" 36 #include "OGLRenderQueue.h" 37 #include "OGLSurfaceData.h" 38 #include "GraphicsPrimitiveMgr.h" 39 #include "Region.h" 40 41 /** 42 * The following methods are implemented in the windowing system (i.e. GLX 43 * and WGL) source files. 44 */ 45 extern jboolean OGLSD_InitOGLWindow(JNIEnv *env, OGLSDOps *oglsdo); 46 extern OGLContext *OGLSD_MakeOGLContextCurrent(JNIEnv *env, 47 OGLSDOps *srcOps, 48 OGLSDOps *dstOps); 49 50 /** 51 * This table contains the standard blending rules (or Porter-Duff compositing 52 * factors) used in glBlendFunc(), indexed by the rule constants from the 53 * AlphaComposite class. 54 */ 55 OGLBlendRule StdBlendRules[] = { 56 { GL_ZERO, GL_ZERO }, /* 0 - Nothing */ 57 { GL_ZERO, GL_ZERO }, /* 1 - RULE_Clear */ 58 { GL_ONE, GL_ZERO }, /* 2 - RULE_Src */ 59 { GL_ONE, GL_ONE_MINUS_SRC_ALPHA }, /* 3 - RULE_SrcOver */ 60 { GL_ONE_MINUS_DST_ALPHA, GL_ONE }, /* 4 - RULE_DstOver */ | 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 #ifndef HEADLESS 27 28 #include <stdlib.h> 29 #include <string.h> 30 31 #include "sun_java2d_SunGraphics2D.h" 32 33 #include "jlong.h" 34 #include "jni_util.h" 35 #include "OGLContext.h" 36 #include "OGLRenderQueue.h" 37 #include "OGLSurfaceData.h" 38 #include "GraphicsPrimitiveMgr.h" 39 #include "Region.h" 40 41 #include "jvm.h" 42 43 /** 44 * The following methods are implemented in the windowing system (i.e. GLX 45 * and WGL) source files. 46 */ 47 extern jboolean OGLSD_InitOGLWindow(JNIEnv *env, OGLSDOps *oglsdo); 48 extern OGLContext *OGLSD_MakeOGLContextCurrent(JNIEnv *env, 49 OGLSDOps *srcOps, 50 OGLSDOps *dstOps); 51 52 /** 53 * This table contains the standard blending rules (or Porter-Duff compositing 54 * factors) used in glBlendFunc(), indexed by the rule constants from the 55 * AlphaComposite class. 56 */ 57 OGLBlendRule StdBlendRules[] = { 58 { GL_ZERO, GL_ZERO }, /* 0 - Nothing */ 59 { GL_ZERO, GL_ZERO }, /* 1 - RULE_Clear */ 60 { GL_ONE, GL_ZERO }, /* 2 - RULE_Src */ 61 { GL_ONE, GL_ONE_MINUS_SRC_ALPHA }, /* 3 - RULE_SrcOver */ 62 { GL_ONE_MINUS_DST_ALPHA, GL_ONE }, /* 4 - RULE_DstOver */ |