4 * Parent for all glx-based display drivers.
6 * Copyright (c) 2005 Nathan Keynes.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
19 #ifndef lxdream_video_glx_H
20 #define lxdream_video_glx_H 1
30 * Initialize GLX support. Detect capabilities, visuals, etc.
31 * Must be called before any other GLX functions
33 gboolean video_glx_init( Display *display, int screen );
36 * Return the prefered visual to be used for the GL window.
37 * (Not using this for the render window may cause init context
40 XVisualInfo *video_glx_get_visual();
43 * Initialize the GLX context and bind to the specified window.
44 * (which should have been created with the visual returned above).
46 gboolean video_glx_init_context( Display *display, Window window );
49 * Initialize the display driver by setting the appropriate methods
52 gboolean video_glx_init_driver( display_driver_t driver );
55 * Shutdown GLX support and release all resources.
57 void video_glx_shutdown();
.