1 /*****************************************************************************
2 * vlc_vout_opengl.h: vout_opengl_t definitions
3 *****************************************************************************
4 * Copyright (C) 2009 Laurent Aimar
7 * Authors: Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef VLC_VOUT_OPENGL_H
25 #define VLC_VOUT_OPENGL_H 1
29 * This file defines vout opengl structures and functions in vlc
32 #include <vlc_common.h>
34 typedef struct vout_opengl_t vout_opengl_t;
35 struct vout_opengl_t {
37 int (*lock)(vout_opengl_t *);
38 void (*swap)(vout_opengl_t *);
39 void (*unlock)(vout_opengl_t *);
44 static inline int vout_opengl_Lock(vout_opengl_t *gl)
50 static inline void vout_opengl_Unlock(vout_opengl_t *gl)
55 static inline void vout_opengl_Swap(vout_opengl_t *gl)
60 #endif /* VLC_VOUT_OPENGL_H */