Search
lxdream.org :: lxdream/src/drivers/video_glx.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_glx.h
changeset 561:533f6b478071
prev545:fdcdcd8b9fd1
next736:a02d1475ccfd
author nkeynes
date Sat Jan 26 02:45:27 2008 +0000 (16 years ago)
permissions -rw-r--r--
last change Bug #50: Implement mouse and keyboard
view annotate diff log raw
     1 /**
     2  * $Id$
     3  *
     4  * Parent for all glx-based display drivers.
     5  *
     6  * Copyright (c) 2005 Nathan Keynes.
     7  *
     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.
    12  *
    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.
    17  */
    19 #ifndef video_glx_driver_H
    20 #define video_glx_driver_H
    22 #include "X11/Xlib.h"
    23 #include "display.h"
    25 /**
    26  * Initialize GLX support. Detect capabilities, visuals, etc. 
    27  * Must be called before any other GLX functions
    28  */
    29 gboolean video_glx_init( Display *display, int screen );
    31 /**
    32  * Return the prefered visual to be used for the GL window.
    33  * (Not using this for the render window may cause init context
    34  * to fail).
    35  */
    36 XVisualInfo *video_glx_get_visual();
    38 /**
    39  * Initialize the GLX context and bind to the specified window.
    40  * (which should have been created with the visual returned above).
    41  */
    42 gboolean video_glx_init_context( Display *display, Window window );
    44 /**
    45  * Initialize the display driver by setting the appropriate methods
    46  * for GLX support
    47  */
    48 gboolean video_glx_init_driver( display_driver_t driver );
    50 /**
    51  * Shutdown GLX support and release all resources.
    52  */
    53 void video_glx_shutdown();
    55 #endif
.