]> git.sesse.net Git - vlc/blob - modules/visualization/galaktos/glx.h
* all: now both GLX 1.2 and 1.3 are supported
[vlc] / modules / visualization / galaktos / glx.h
1 /*****************************************************************************
2  * plugin.h:
3  *****************************************************************************
4  * Copyright (C) 2004 VideoLAN
5  * $Id$
6  *
7  * Authors: Cyril Deguet <asmax@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #ifndef _GALAKTOS_GLX_H_
25 #define _GALAKTOS_GLX_H_
26
27 #include "plugin.h"
28
29 int galaktos_glx_init( galaktos_thread_t *p_thread );
30 void galaktos_glx_done( galaktos_thread_t *p_thread );
31 int galaktos_glx_handle_events( galaktos_thread_t *p_thread );
32 void galaktos_glx_activate_pbuffer( galaktos_thread_t *p_thread );
33 void galaktos_glx_activate_window( galaktos_thread_t *p_thread );
34 void galaktos_glx_swap( galaktos_thread_t *p_thread );
35
36 /*****************************************************************************
37  * mwmhints_t: window manager hints
38  *****************************************************************************
39  * Fullscreen needs to be able to hide the wm decorations so we provide
40  * this structure to make it easier.
41  *****************************************************************************/
42 #define MWM_HINTS_DECORATIONS   (1L << 1)
43 #define PROP_MWM_HINTS_ELEMENTS 5
44 typedef struct mwmhints_t
45 {
46     uint32_t flags;
47     uint32_t functions;
48     uint32_t decorations;
49     int32_t  input_mode;
50     uint32_t status;
51 } mwmhints_t;
52
53 #endif