@@ -85,6 +85,13 @@ cairo_private cairo_gl_dispatch_entry_t dispatch_shaders_entries[] = {
DISPATCH_ENTRY_ARB (UniformMatrix3fv),
DISPATCH_ENTRY_ARB (UniformMatrix4fv),
DISPATCH_ENTRY_ARB (Uniform1i),
+
+ /* Attributes */
+ DISPATCH_ENTRY_ARB (BindAttribLocation),
+ DISPATCH_ENTRY_ARB (VertexAttribPointer),
+ DISPATCH_ENTRY_ARB (EnableVertexAttribArray),
+ DISPATCH_ENTRY_ARB (DisableVertexAttribArray),
+
DISPATCH_ENTRY_LAST
};
@@ -214,6 +214,15 @@ typedef struct _cairo_gl_dispatch {
GLboolean transpose, const GLfloat *value);
void (*Uniform1i) (GLint location, GLint x);
+ /* Attributes */
+ void (*BindAttribLocation) (GLuint program, GLuint index,
+ const GLchar *name);
+ void (*VertexAttribPointer) (GLuint index, GLint size, GLenum type,
+ GLboolean normalized, GLsizei stride,
+ const GLvoid *pointer);
+ void (*EnableVertexAttribArray) (GLuint index);
+ void (*DisableVertexAttribArray) (GLuint index);
+
/* Framebuffer objects */
void (*GenFramebuffers) (GLsizei n, GLuint* framebuffers);
void (*BindFramebuffer) (GLenum target, GLuint framebuffer);
From: Alexandros Frantzis <alexandros.frantzis@linaro.org> --- src/cairo-gl-dispatch-private.h | 7 +++++++ src/cairo-gl-private.h | 9 +++++++++ 2 files changed, 16 insertions(+), 0 deletions(-)