2
* Copyright © 2004 David Reveman
4
* Permission to use, copy, modify, distribute, and sell this software
5
* and its documentation for any purpose is hereby granted without
6
* fee, provided that the above copyright notice appear in all copies
7
* and that both that copyright notice and this permission notice
8
* appear in supporting documentation, and that the name of
9
* David Reveman not be used in advertising or publicity pertaining to
10
* distribution of the software without specific, written prior permission.
11
* David Reveman makes no representations about the suitability of this
12
* software for any purpose. It is provided "as is" without express or
15
* DAVID REVEMAN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17
* NO EVENT SHALL DAVID REVEMAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23
* Author: David Reveman <davidr@novell.com>
29
xglScreenInfoRec xglScreenInfo = {
31
DEFAULT_GEOMETRY_DATA_TYPE,
32
DEFAULT_GEOMETRY_USAGE,
37
{ FALSE, FALSE, { 0, 0, 0, 0 } },
38
{ FALSE, FALSE, { 0, 0, 0, 0 } },
39
{ FALSE, FALSE, { 0, 0, 0, 0 } },
40
{ FALSE, FALSE, { 0, 0, 0, 0 } }
45
static Bool loadGlx = TRUE;
48
static char *glxExtLogFile = 0;
54
InitOutput (ScreenInfo *pScreenInfo,
62
if (!xglLoadGLXModules ())
63
FatalError ("No GLX modules loaded");
68
__xglGLXLogFp = fopen (glxExtLogFile, "w");
70
perror ("InitOutput");
79
xglxInitOutput (pScreenInfo, argc, argv);
83
LegalModifier (unsigned int key,
86
return xglxLegalModifier (key, pDev);
90
ProcessInputEvents (void)
92
xglxProcessInputEvents ();
99
xglxInitInput (argc, argv);
105
ErrorF ("\nXgl usage:\n");
108
ErrorF ("-noglx don't load glx extension\n");
111
ErrorF ("-glxlog file glx extension log file\n");
117
ErrorF ("\nXglx usage:\n");
122
ddxProcessArgument (int argc,
129
if (!strcmp (argv[i], "-noglx"))
136
else if (!strcmp (argv[i], "-glxlog"))
139
glxExtLogFile = argv[i];
145
skip = xglProcessArgument (argc, argv, i);
149
return xglxProcessArgument (argc, argv, i);
170
void ddxInitGlobals()