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>
28 static xglScreenInfoRec xglScreenInfo
= {
30 DEFAULT_GEOMETRY_DATA_TYPE
,
31 DEFAULT_GEOMETRY_USAGE
,
39 static Bool loadGlx
= TRUE
;
43 InitOutput (ScreenInfo
*pScreenInfo
,
51 if (!xglLoadGLXModules ())
52 FatalError ("No GLX modules loaded");
56 xeglInitOutput (pScreenInfo
, argc
, argv
);
60 LegalModifier (unsigned int key
,
63 return xeglLegalModifier (key
, pDev
);
67 ProcessInputEvents (void)
69 xeglProcessInputEvents ();
76 xeglInitInput (argc
, argv
);
82 ErrorF ("\nXgl usage:\n");
85 ErrorF ("-noglx don't load glx extension\n");
89 ErrorF ("\nXegl usage:\n");
94 ddxProcessArgument (int argc
,
101 if (!strcmp (argv
[i
], "-noglx"))
108 skip
= xglProcessArgument (argc
, argv
, i
);
112 return xeglProcessArgument (argc
, argv
, i
);