6447N/A * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A * The methods in this file implement the native windowing system specific 0N/A * layer (GLX) for the OpenGL-based Java 2D pipeline. 0N/A#
endif /* !HEADLESS */ 0N/A "getContentWindow",
"()J").j;
0N/A "Native GraphicsConfig data block missing");
0N/A#
endif /* HEADLESS */ 0N/A * This function disposes of any native windowing system resources associated 0N/A * with this surface. For instance, if the given OGLSDOps is of type 0N/A * OGLSD_PBUFFER, this method implementation will destroy the actual pbuffer 0N/A // X Window is free'd later by AWT code... 0N/A * Makes the given context current to its associated "scratch" surface. If 0N/A * the operation is successful, this method will return JNI_TRUE; otherwise, 0N/A * returns JNI_FALSE. 0N/A "GLXSD_MakeCurrentToScratch: context is null");
0N/A "GLXSD_MakeCurrentToScratch: could not make current");
0N/A * Returns a pointer (as a jlong) to the native GLXGraphicsConfigInfo 0N/A * associated with the given OGLSDOps. This method can be called from 0N/A * shared code to retrieve the native GraphicsConfig data in a platform- 0N/A * independent manner. 0N/A "OGLSD_GetNativeConfigInfo: ops are null");
0N/A "OGLSD_GetNativeConfigInfo: glx ops are null");
0N/A "OGLSD_GetNativeConfigInfo: config data is null");
0N/A * Makes the given GraphicsConfig's context current to its associated 0N/A * "scratch" surface. If there is a problem making the context current, 0N/A * this method will return NULL; otherwise, returns a pointer to the 0N/A * OGLContext that is associated with the given GraphicsConfig. 0N/A "OGLSD_SetScratchContext: glx config info is null");
0N/A // the GL_EXT_framebuffer_object extension is present, so this call 0N/A // will ensure that we are bound to the scratch pbuffer (and not 0N/A // some other framebuffer object) 0N/A * Makes a context current to the given source and destination 0N/A * surfaces. If there is a problem making the context current, this method 0N/A * will return NULL; otherwise, returns a pointer to the OGLContext that is 0N/A * associated with the destination surface. 0N/A "OGLSD_MakeOGLContextCurrent: context is null");
0N/A // first make sure we have a current context (if the context isn't 0N/A // already current to some drawable, we will make it current to 0N/A // its scratch surface) 0N/A // now bind to the fbobject associated with the destination surface; 0N/A // this means that all rendering will go into the fbobject destination 0N/A // (note that we unbind the currently bound texture first; this is 0N/A // recommended procedure when binding an fbobject) 0N/A // make the context current 0N/A "OGLSD_MakeOGLContextCurrent: could not make current");
0N/A // the GL_EXT_framebuffer_object extension is present, so we 0N/A // must bind to the default (windowing system provided) 0N/A * This function initializes a native window surface and caches the window 0N/A * bounds in the given OGLSDOps. Returns JNI_TRUE if the operation was 0N/A * successful; JNI_FALSE otherwise. 0N/A "OGLSD_InitOGLWindow: ops are null");
0N/A "OGLSD_InitOGLWindow: glx ops are null");
0N/A "OGLSD_InitOGLWindow: window is invalid");
0N/A "OGLSD_InitOGLWindow: widget is unrealized");
0N/A "GLXSurfaceData_initPbuffer: w=%d h=%d opq=%d",
0N/A "GLXSurfaceData_initPbuffer: ops are null");
0N/A "GLXSurfaceData_initPbuffer: glx ops are null");
0N/A "GLXSurfaceData_initPbuffer: glx config info is null");
6447N/A // Call XSync without the acquired AWT lock to avoid a deadlock (see 8015730). 0N/A "GLXSurfaceData_initPbuffer: could not create glx pbuffer");
0N/A "OGLSD_SwapBuffers: window is null");
4632N/A// needed by Mac OS X port, no-op on other platforms 0N/A#
endif /* !HEADLESS */