From deebc55014074fef121c1df6b117e9c0bf97d516 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 29 Aug 2015 01:10:30 +0200 Subject: vo_opengl: move gl_* files to their own subdir This is mainly just to keep things a bit more organized and separated inside the codebase. --- video/out/opengl/gl_osd.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 video/out/opengl/gl_osd.h (limited to 'video/out/opengl/gl_osd.h') diff --git a/video/out/opengl/gl_osd.h b/video/out/opengl/gl_osd.h new file mode 100644 index 0000000000..e00565aad7 --- /dev/null +++ b/video/out/opengl/gl_osd.h @@ -0,0 +1,22 @@ +#ifndef MPLAYER_GL_OSD_H +#define MPLAYER_GL_OSD_H + +#include +#include + +#include "gl_utils.h" +#include "sub/osd.h" + +struct mpgl_osd *mpgl_osd_init(GL *gl, struct mp_log *log, struct osd_state *osd); +void mpgl_osd_destroy(struct mpgl_osd *ctx); + +void mpgl_osd_set_options(struct mpgl_osd *ctx, bool pbo); + +void mpgl_osd_generate(struct mpgl_osd *ctx, struct mp_osd_res res, double pts, + int stereo_mode, int draw_flags); +enum sub_bitmap_format mpgl_osd_get_part_format(struct mpgl_osd *ctx, int index); +struct gl_vao *mpgl_osd_get_vao(struct mpgl_osd *ctx); +void mpgl_osd_draw_part(struct mpgl_osd *ctx, int vp_w, int vp_h, int index); +int64_t mpgl_get_change_counter(struct mpgl_osd *ctx); + +#endif -- cgit v1.2.3