diff mbox

[5/6] gl: Add gl dispatch entries for functions related to vertex attributes

Message ID 1297163415-31035-6-git-send-email-alexandros.frantzis@linaro.org
State Accepted
Commit e68062d9caafe21b53af22173fff40ad973a8d73
Headers show

Commit Message

alexandros.frantzis@linaro.org Feb. 8, 2011, 11:10 a.m. UTC
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(-)
diff mbox

Patch

diff --git a/src/cairo-gl-dispatch-private.h b/src/cairo-gl-dispatch-private.h
index bd444a5..0795e70 100644
--- a/src/cairo-gl-dispatch-private.h
+++ b/src/cairo-gl-dispatch-private.h
@@ -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
 };
 
diff --git a/src/cairo-gl-private.h b/src/cairo-gl-private.h
index 61c382d..fd1af87 100644
--- a/src/cairo-gl-private.h
+++ b/src/cairo-gl-private.h
@@ -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);