45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _GLX_context_h_
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _GLX_context_h_
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** License Applicability. Except to the extent portions of this file are
45e9809aff7304721fddb95654901b32195c9c7avboxsync** made subject to an alternative license as permitted in the SGI Free
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Software License B, Version 1.1 (the "License"), the contents of this
45e9809aff7304721fddb95654901b32195c9c7avboxsync** file are subject only to the provisions of the License. You may not use
45e9809aff7304721fddb95654901b32195c9c7avboxsync** this file except in compliance with the License. You may obtain a copy
45e9809aff7304721fddb95654901b32195c9c7avboxsync** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
45e9809aff7304721fddb95654901b32195c9c7avboxsync**
45e9809aff7304721fddb95654901b32195c9c7avboxsync** http://oss.sgi.com/projects/FreeB
45e9809aff7304721fddb95654901b32195c9c7avboxsync**
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Note that, as provided in the License, the Software is distributed on an
45e9809aff7304721fddb95654901b32195c9c7avboxsync** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
45e9809aff7304721fddb95654901b32195c9c7avboxsync** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
45e9809aff7304721fddb95654901b32195c9c7avboxsync** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
45e9809aff7304721fddb95654901b32195c9c7avboxsync** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
45e9809aff7304721fddb95654901b32195c9c7avboxsync**
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Original Code. The Original Code is: OpenGL Sample Implementation,
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Copyright in any portions created by third parties is as indicated
45e9809aff7304721fddb95654901b32195c9c7avboxsync** elsewhere herein. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync**
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Additional Notice Provisions: The application programming interfaces
45e9809aff7304721fddb95654901b32195c9c7avboxsync** established by SGI in conjunction with the Original Code are The
45e9809aff7304721fddb95654901b32195c9c7avboxsync** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
45e9809aff7304721fddb95654901b32195c9c7avboxsync** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
45e9809aff7304721fddb95654901b32195c9c7avboxsync** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Window System(R) (Version 1.3), released October 19, 1998. This software
45e9809aff7304721fddb95654901b32195c9c7avboxsync** was created using the OpenGL(R) version 1.2.1 Sample Implementation
45e9809aff7304721fddb95654901b32195c9c7avboxsync** published by SGI, but has not been independently verified as being
45e9809aff7304721fddb95654901b32195c9c7avboxsync** compliant with the OpenGL(R) version 1.2.1 Specification.
45e9809aff7304721fddb95654901b32195c9c7avboxsync**
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct __GLXcontextRec __GLXcontext;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "GL/internal/glcore.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstruct __GLXcontextRec {
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** list of context structs
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync struct __GLXcontextRec *last;
45e9809aff7304721fddb95654901b32195c9c7avboxsync struct __GLXcontextRec *next;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Pointer to screen info data for this context. This is set
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** when the context is created.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync ScreenPtr pScreen;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __GLXscreenInfo *pGlxScreen;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** This context is created with respect to this visual.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync VisualRec *pVisual;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __GLXvisualConfig *pGlxVisual;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __GLXFBConfig *pFBConfig;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** The XID of this context.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync XID id;
45e9809aff7304721fddb95654901b32195c9c7avboxsync XID *real_ids;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** The XID of the shareList context.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync XID share_id;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Visual id.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync VisualID vid;
45e9809aff7304721fddb95654901b32195c9c7avboxsync VisualID *real_vids;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** screen number.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint screen;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Whether this context's ID still exists.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLboolean idExists;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Whether this context is current for some client.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLboolean isCurrent;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Buffers for feedback and selection.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLfloat *feedbackBuf;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint feedbackBufSize; /* number of elements allocated */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLuint *selectBuf;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint selectBufSize; /* number of elements allocated */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Set only if current drawable is a glx pixmap.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync __GLXpixmap *pGlxPixmap;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __GLXpixmap *pGlxReadPixmap;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __glXWindow *pGlxWindow;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __glXWindow *pGlxReadWindow;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __glXPbuffer *pGlxPbuffer;
45e9809aff7304721fddb95654901b32195c9c7avboxsync __glXPbuffer *pGlxReadPbuffer;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync};
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* !__GLX_context_h__ */