[cairo] [PATCH 5/6] gl: Add gl dispatch entries for functions related to vertex attributes
alexandros.frantzis at linaro.org
alexandros.frantzis at linaro.org
Tue Feb 8 03:10:14 PST 2011
From: Alexandros Frantzis <alexandros.frantzis at linaro.org>
---
src/cairo-gl-dispatch-private.h | 7 +++++++
src/cairo-gl-private.h | 9 +++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
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);
--
1.7.2.3
More information about the cairo
mailing list