xine-lib 1.2.11
xine_gl.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2019 the xine project
3 * Copyright (C) 2018-2019 Petri Hintukainen <phintuka@users.sourceforge.net>
4 *
5 * This file is part of xine, a free video player.
6 *
7 * xine is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * xine is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20 *
21 * xine_gl.h, Interface between OpenGL and native windowing system
22 *
23 * GL provider API, used in vo drivers
24 *
25 */
26
27#ifndef XINE_GL_H_
28#define XINE_GL_H_
29
30#include <xine.h>
31
32typedef struct xine_gl xine_gl_t;
33
34struct xine_gl {
38
39 /* resize is needed only with WAYLAND visual */
40 void (*resize) (xine_gl_t *, int width, int height);
41 /* set_native_window is used only with X11 */
42 void (*set_native_window)(xine_gl_t *, void *);
43
44 void (*dispose) (xine_gl_t **);
45};
46
47xine_gl_t *_x_load_gl(xine_t *xine, unsigned visual_type, const void *visual, unsigned flags);
48
49/* flags */
50#define XINE_GL_API_OPENGL 0x0001
51
52#endif /* XINE_GL_H_ */
unsigned int height
Definition: gfontrle.c:5
unsigned int width
Definition: gfontrle.c:4
Definition: xine_gl.h:34
void(* resize)(xine_gl_t *, int width, int height)
Definition: xine_gl.h:40
int(* make_current)(xine_gl_t *)
Definition: xine_gl.h:35
void(* swap_buffers)(xine_gl_t *)
Definition: xine_gl.h:37
void(* release_current)(xine_gl_t *)
Definition: xine_gl.h:36
void(* set_native_window)(xine_gl_t *, void *)
Definition: xine_gl.h:42
void(* dispose)(xine_gl_t **)
Definition: xine_gl.h:44
Definition: xine_internal.h:80
xine_gl_t * _x_load_gl(xine_t *xine, unsigned visual_type, const void *visual, unsigned flags)
Definition: xine_gl.c:56