diff options
Diffstat (limited to 'video/out/gl_utils.h')
-rw-r--r-- | video/out/gl_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/gl_utils.h b/video/out/gl_utils.h index 2c55e72c44..f03ac07b83 100644 --- a/video/out/gl_utils.h +++ b/video/out/gl_utils.h @@ -119,13 +119,17 @@ void gl_set_debug_logger(GL *gl, struct mp_log *log); struct gl_shader_cache; -struct gl_shader_cache *gl_sc_create(GL *gl, struct mp_log *log); +struct gl_shader_cache *gl_sc_create(GL *gl, struct mp_log *log, + struct mpv_global *global); void gl_sc_destroy(struct gl_shader_cache *sc); void gl_sc_add(struct gl_shader_cache *sc, const char *text); void gl_sc_addf(struct gl_shader_cache *sc, const char *textf, ...); +void gl_sc_hadd(struct gl_shader_cache *sc, const char *text); +const char *gl_sc_loadfile(struct gl_shader_cache *sc, const char *path); void gl_sc_uniform_sampler(struct gl_shader_cache *sc, char *name, GLenum target, int unit); void gl_sc_uniform_f(struct gl_shader_cache *sc, char *name, GLfloat f); +void gl_sc_uniform_i(struct gl_shader_cache *sc, char *name, GLint f); void gl_sc_uniform_vec2(struct gl_shader_cache *sc, char *name, GLfloat f[2]); void gl_sc_uniform_vec3(struct gl_shader_cache *sc, char *name, GLfloat f[3]); void gl_sc_uniform_mat2(struct gl_shader_cache *sc, char *name, |