From 3583559164b922673b2ccdb31f810befae613779 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 28 Jan 2015 19:40:46 +0100 Subject: 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. --- video/out/gl_common.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'video/out/gl_common.h') 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 *); -- cgit v1.2.3