glxcontext.h revision 4c221b0da1816acf2ca302b10092df059484468d
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync#ifndef _GLX_context_h_
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync#define _GLX_context_h_
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/*
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync *
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * copy of this software and associated documentation files (the "Software"),
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * to deal in the Software without restriction, including without limitation
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * and/or sell copies of the Software, and to permit persons to whom the
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Software is furnished to do so, subject to the following conditions:
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync *
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * The above copyright notice including the dates of first publication and
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * either this permission notice or a reference to
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * http://oss.sgi.com/projects/FreeB/
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * shall be included in all copies or substantial portions of the Software.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync *
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * SOFTWARE.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync *
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Except as contained in this notice, the name of Silicon Graphics, Inc.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * shall not be used in advertising or otherwise to promote the sale, use or
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * other dealings in this Software without prior written authorization from
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Silicon Graphics, Inc.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsynctypedef struct __GLXcontextRec __GLXcontext;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync#include "GL/internal/glcore.h"
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstruct __GLXcontextRec {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync /*
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ** list of context structs
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync struct __GLXcontextRec *last;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync struct __GLXcontextRec *next;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync /*
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ** Pointer to screen info data for this context. This is set
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ** when the context is created.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ScreenPtr pScreen;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync __GLXscreenInfo *pGlxScreen;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync /*
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ** This context is created with respect to this visual.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync VisualRec *pVisual;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync __GLXvisualConfig *pGlxVisual;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync __GLXFBConfig *pFBConfig;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
/*
** The XID of this context.
*/
XID id;
XID *real_ids;
/*
** The XID of the shareList context.
*/
XID share_id;
/*
** Visual id.
*/
VisualID vid;
VisualID *real_vids;
/*
** screen number.
*/
GLint screen;
/*
** Whether this context's ID still exists.
*/
GLboolean idExists;
/*
** Whether this context is current for some client.
*/
GLboolean isCurrent;
/*
** Buffers for feedback and selection.
*/
GLfloat *feedbackBuf;
GLint feedbackBufSize; /* number of elements allocated */
GLuint *selectBuf;
GLint selectBufSize; /* number of elements allocated */
/*
** Set only if current drawable is a glx pixmap.
*/
__GLXpixmap *pGlxPixmap;
__GLXpixmap *pGlxReadPixmap;
__glXWindow *pGlxWindow;
__glXWindow *pGlxReadWindow;
__glXPbuffer *pGlxPbuffer;
__glXPbuffer *pGlxReadPbuffer;
};
#endif /* !__GLX_context_h__ */