1 | #ifdef HAVE_DIX_CONFIG_H
|
---|
2 | #include <dix-config.h>
|
---|
3 | #endif
|
---|
4 |
|
---|
5 | #ifndef _GLX_screens_h_
|
---|
6 | #define _GLX_screens_h_
|
---|
7 |
|
---|
8 | /*
|
---|
9 | ** License Applicability. Except to the extent portions of this file are
|
---|
10 | ** made subject to an alternative license as permitted in the SGI Free
|
---|
11 | ** Software License B, Version 1.1 (the "License"), the contents of this
|
---|
12 | ** file are subject only to the provisions of the License. You may not use
|
---|
13 | ** this file except in compliance with the License. You may obtain a copy
|
---|
14 | ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
|
---|
15 | ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
|
---|
16 | **
|
---|
17 | ** http://oss.sgi.com/projects/FreeB
|
---|
18 | **
|
---|
19 | ** Note that, as provided in the License, the Software is distributed on an
|
---|
20 | ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
|
---|
21 | ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
|
---|
22 | ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
|
---|
23 | ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
|
---|
24 | **
|
---|
25 | ** Original Code. The Original Code is: OpenGL Sample Implementation,
|
---|
26 | ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
|
---|
27 | ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
|
---|
28 | ** Copyright in any portions created by third parties is as indicated
|
---|
29 | ** elsewhere herein. All Rights Reserved.
|
---|
30 | **
|
---|
31 | ** Additional Notice Provisions: The application programming interfaces
|
---|
32 | ** established by SGI in conjunction with the Original Code are The
|
---|
33 | ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
|
---|
34 | ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
|
---|
35 | ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
|
---|
36 | ** Window System(R) (Version 1.3), released October 19, 1998. This software
|
---|
37 | ** was created using the OpenGL(R) version 1.2.1 Sample Implementation
|
---|
38 | ** published by SGI, but has not been independently verified as being
|
---|
39 | ** compliant with the OpenGL(R) version 1.2.1 Specification.
|
---|
40 | **
|
---|
41 | */
|
---|
42 |
|
---|
43 | /* XXX: should be defined somewhere globally */
|
---|
44 | #define CAPI
|
---|
45 |
|
---|
46 | #include "GL/internal/glcore.h"
|
---|
47 |
|
---|
48 | /*
|
---|
49 | ** Screen dependent data. These methods are the interface between the DIX
|
---|
50 | ** and DDX layers of the GLX server extension. The methods provide an
|
---|
51 | ** interface for context management on a screen.
|
---|
52 | */
|
---|
53 | typedef struct __GLXscreen __GLXscreen;
|
---|
54 | struct __GLXscreen {
|
---|
55 | void (*destroy) (__GLXscreen *screen);
|
---|
56 |
|
---|
57 | __GLXcontext *(*createContext) (__GLXscreen *screen,
|
---|
58 | __GLcontextModes *modes,
|
---|
59 | __GLXcontext *shareContext);
|
---|
60 |
|
---|
61 | __GLXdrawable *(*createDrawable)(__GLXscreen *context,
|
---|
62 | DrawablePtr pDraw,
|
---|
63 | XID drawId,
|
---|
64 | __GLcontextModes *modes);
|
---|
65 | int (*swapInterval) (__GLXdrawable *drawable,
|
---|
66 | int interval);
|
---|
67 |
|
---|
68 | ScreenPtr pScreen;
|
---|
69 |
|
---|
70 | /**
|
---|
71 | * Linked list of valid context modes for this screen.
|
---|
72 | */
|
---|
73 | __GLcontextModes *modes;
|
---|
74 |
|
---|
75 | void **pVisualPriv;
|
---|
76 | GLint numVisuals;
|
---|
77 | GLint numUsableVisuals;
|
---|
78 |
|
---|
79 | char *GLextensions;
|
---|
80 |
|
---|
81 | char *GLXvendor;
|
---|
82 | char *GLXversion;
|
---|
83 | char *GLXextensions;
|
---|
84 |
|
---|
85 | /*
|
---|
86 | ** Things that are not statically set.
|
---|
87 | */
|
---|
88 | Bool (*WrappedPositionWindow)(WindowPtr pWin, int x, int y);
|
---|
89 |
|
---|
90 | };
|
---|
91 |
|
---|
92 |
|
---|
93 | void __glXScreenInit(__GLXscreen *screen, ScreenPtr pScreen);
|
---|
94 | void __glXScreenDestroy(__GLXscreen *screen);
|
---|
95 |
|
---|
96 | void __glXInitScreens(void);
|
---|
97 | extern void __glXResetScreens(void);
|
---|
98 |
|
---|
99 | #endif /* !__GLX_screens_h__ */
|
---|