0N/A/*
2362N/A * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
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 *
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 *
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.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A#ifndef GLXSurfaceData_h_Included
0N/A#define GLXSurfaceData_h_Included
0N/A
0N/A#include "J2D_GL/glx.h"
0N/A#include "awt_p.h"
0N/A#include "OGLSurfaceData.h"
0N/A
0N/A#ifdef HEADLESS
0N/A#define GLXSDOps void
0N/A#else /* HEADLESS */
0N/A
0N/A/**
0N/A * The GLXSDOps structure contains the GLX-specific information for a given
0N/A * OGLSurfaceData. It is referenced by the native OGLSDOps structure.
0N/A *
0N/A * Window window; (used in XAWT only)
0N/A * For onscreen windows, we maintain a reference to that window's associated
0N/A * XWindow handle here. Offscreen surfaces have no associated Window, so for
0N/A * those surfaces, this value will simply be zero.
0N/A *
0N/A * Widget widget; (used in MAWT only)
0N/A * For onscreen windows, we maintain a reference to that window's associated
0N/A * Widget handle here. Offscreen surfaces have no associated Widget, so for
0N/A * those surfaces, this value will simply be zero.
0N/A *
0N/A * Drawable xdrawable;
0N/A * If a GLXDrawable has a corresponding X11 Drawable, it is stored here. For
0N/A * example, each GLXWindow has an associated Window and each GLXPixmap has an
0N/A * associated Pixmap. GLXPbuffers have no associated X11 Drawable (they are
0N/A * pure OpenGL surfaces), so for pbuffers, this field is set to zero;
0N/A *
0N/A * GLXDrawable drawable;
0N/A * The native handle to the GLXDrawable at the core of this surface. A
0N/A * GLXDrawable can be a Window, GLXWindow, GLXPixmap, or GLXPbuffer.
0N/A *
0N/A * AwtGraphicsConfigData *configData;
0N/A * A pointer to the AwtGraphicsConfigData under which this surface was
0N/A * created.
0N/A */
0N/Atypedef struct _GLXSDOps {
0N/A#ifdef XAWT
0N/A Window window;
0N/A#else
0N/A Widget widget;
0N/A#endif
0N/A Drawable xdrawable;
0N/A GLXDrawable drawable;
0N/A struct _AwtGraphicsConfigData *configData;
0N/A} GLXSDOps;
0N/A
0N/A#endif /* HEADLESS */
0N/A
0N/A#endif /* GLXSurfaceData_h_Included */