diff options
author | wm4 <wm4@nowhere> | 2017-07-22 21:56:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-07-22 21:56:23 +0200 |
commit | 95885bbaa2da73732b6051af72b1a36778264c7f (patch) | |
tree | 7673c42556c38ba3eed606872672cca7cc1a19c9 /video/out/opengl/utils.h | |
parent | d3dfffdf020e0c4de1159b45a69e938cb300a2e1 (diff) | |
download | mpv-95885bbaa2da73732b6051af72b1a36778264c7f.tar.bz2 mpv-95885bbaa2da73732b6051af72b1a36778264c7f.tar.xz |
vo_opengl: make VAO helper private, remove old VAO mechanism
The struct describing vertex attributes is still public, of course.
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r-- | video/out/opengl/utils.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h index 7a5606871f..1ae2f0f330 100644 --- a/video/out/opengl/utils.h +++ b/video/out/opengl/utils.h @@ -48,21 +48,6 @@ struct gl_vao_entry { int offset; }; -struct gl_vao { - GL *gl; - GLuint vao; // the VAO object, or 0 if unsupported by driver - GLuint buffer; // GL_ARRAY_BUFFER used for the data - int stride; // size of each element (interleaved elements are assumed) - const struct gl_vao_entry *entries; -}; - -void gl_vao_init(struct gl_vao *vao, GL *gl, int stride, - const struct gl_vao_entry *entries); -void gl_vao_uninit(struct gl_vao *vao); -void gl_vao_bind(struct gl_vao *vao); -void gl_vao_unbind(struct gl_vao *vao); -void gl_vao_draw_data(struct gl_vao *vao, GLenum prim, void *ptr, size_t num); - struct fbotex { GL *gl; GLuint fbo; @@ -165,7 +150,6 @@ void gl_sc_uniform_mat2(struct gl_shader_cache *sc, char *name, bool transpose, GLfloat *v); void gl_sc_uniform_mat3(struct gl_shader_cache *sc, char *name, bool transpose, GLfloat *v); -void gl_sc_set_vao(struct gl_shader_cache *sc, struct gl_vao *vao); void gl_sc_set_vertex_format(struct gl_shader_cache *sc, const struct gl_vao_entry *entries, size_t vertex_size); |