opengl: factorize program creation
[vlc.git] / modules / video_output / opengl / internal.h
blobf4ed495252900e44e33b1f6464f5129f3c256872
1 /*****************************************************************************
2 * internal.h: OpenGL internal header
3 *****************************************************************************
4 * Copyright (C) 2017 VLC authors and VideoLAN
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19 *****************************************************************************/
21 #ifndef VLC_OPENGL_INTERNAL_H
22 #define VLC_OPENGL_INTERNAL_H
24 #include "interop.h"
25 #include "renderer.h"
27 int
28 opengl_interop_init_impl(struct vlc_gl_interop *interop, GLenum tex_target,
29 vlc_fourcc_t chroma, video_color_space_t yuv_space);
31 char *
32 opengl_fragment_shader_init(struct vlc_gl_renderer *rendeer,
33 GLenum, vlc_fourcc_t, video_color_space_t);
34 int
35 opengl_interop_generic_init(struct vlc_gl_interop *interop, bool);
37 void
38 opengl_interop_generic_deinit(struct vlc_gl_interop *interop);
40 #endif /* include-guard */