diff options
author | wm4 <wm4@nowhere> | 2015-01-28 19:40:46 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-28 19:40:46 +0100 |
commit | 3583559164b922673b2ccdb31f810befae613779 (patch) | |
tree | e38e66b50ce6076db8f06def3c296354e182f645 /video/out/gl_common.h | |
parent | 7b3feecbc23e3e0b0d9cf66f02af53d127a0b681 (diff) | |
download | mpv-3583559164b922673b2ccdb31f810befae613779.tar.bz2 mpv-3583559164b922673b2ccdb31f810befae613779.tar.xz |
vo_opengl: move utility functions from loader to a separate file
gl_common.c contained the function loader (which is big) and additional
utility functions (not so big, but will grow when moving more out of
gl_video.c). Just split them. There are no changes other than some
modifications to comments.
Diffstat (limited to 'video/out/gl_common.h')
-rw-r--r-- | video/out/gl_common.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/video/out/gl_common.h b/video/out/gl_common.h index 97e319556d..0143fea843 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -53,15 +53,6 @@ struct GL; typedef struct GL GL; -int glFmt2bpp(GLenum format, GLenum type); -void glUploadTex(GL *gl, GLenum target, GLenum format, GLenum type, - const void *dataptr, int stride, - int x, int y, int w, int h, int slice); -void glClearTex(GL *gl, GLenum target, GLenum format, GLenum type, - int x, int y, int w, int h, uint8_t val, void **scratch); -void glCheckError(GL *gl, struct mp_log *log, const char *info); -mp_image_t *glGetWindowScreenshot(GL *gl); - enum { MPGL_CAP_ROW_LENGTH = (1 << 4), // GL_[UN]PACK_ROW_LENGTH MPGL_CAP_FB = (1 << 5), @@ -159,10 +150,6 @@ void mpgl_load_functions(GL *gl, void *(*getProcAddress)(const GLubyte *), void mpgl_load_functions2(GL *gl, void *(*get_fn)(void *ctx, const char *n), void *fn_ctx, const char *ext2, struct mp_log *log); -// print a multi line string with line numbers (e.g. for shader sources) -// log, lev: module and log level, as in mp_msg() -void mp_log_source(struct mp_log *log, int lev, const char *src); - typedef void (GLAPIENTRY *MP_GLDEBUGPROC)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *,const void *); |