1
/* $XFree86: xc/programs/Xserver/GL/glx/glxcontext.h,v 1.3 2001/03/21 16:29:36 dawes Exp $ */
2
#ifndef _GLX_context_h_
3
#define _GLX_context_h_
6
** License Applicability. Except to the extent portions of this file are
7
** made subject to an alternative license as permitted in the SGI Free
8
** Software License B, Version 1.1 (the "License"), the contents of this
9
** file are subject only to the provisions of the License. You may not use
10
** this file except in compliance with the License. You may obtain a copy
11
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
12
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
14
** http://oss.sgi.com/projects/FreeB
16
** Note that, as provided in the License, the Software is distributed on an
17
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
18
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
19
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
20
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
22
** Original Code. The Original Code is: OpenGL Sample Implementation,
23
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
24
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
25
** Copyright in any portions created by third parties is as indicated
26
** elsewhere herein. All Rights Reserved.
28
** Additional Notice Provisions: The application programming interfaces
29
** established by SGI in conjunction with the Original Code are The
30
** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
31
** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
32
** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
33
** Window System(R) (Version 1.3), released October 19, 1998. This software
34
** was created using the OpenGL(R) version 1.2.1 Sample Implementation
35
** published by SGI, but has not been independently verified as being
36
** compliant with the OpenGL(R) version 1.2.1 Specification.
40
typedef struct __GLXcontextRec __GLXcontext;
42
#include "GL/internal/glcore.h"
44
struct __GLXcontextRec {
46
** list of context structs
48
struct __GLXcontextRec *last;
49
struct __GLXcontextRec *next;
52
** Pointer to screen info data for this context. This is set
53
** when the context is created.
56
__GLXscreenInfo *pGlxScreen;
59
** This context is created with respect to this visual.
62
__GLXvisualConfig *pGlxVisual;
63
__GLXFBConfig *pFBConfig;
66
** The XID of this context.
72
** The XID of the shareList context.
88
** Whether this context's ID still exists.
93
** Whether this context is current for some client.
98
** Buffers for feedback and selection.
100
GLfloat *feedbackBuf;
101
GLint feedbackBufSize; /* number of elements allocated */
103
GLint selectBufSize; /* number of elements allocated */
106
** Set only if current drawable is a glx pixmap.
108
__GLXpixmap *pGlxPixmap;
109
__GLXpixmap *pGlxReadPixmap;
110
__glXWindow *pGlxWindow;
111
__glXWindow *pGlxReadWindow;
112
__glXPbuffer *pGlxPbuffer;
113
__glXPbuffer *pGlxReadPbuffer;
117
#endif /* !__GLX_context_h__ */