From patchwork Tue Feb 8 11:10:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 86 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:39:52 -0000 Delivered-To: patches@linaro.org Received: by 10.147.124.5 with SMTP id b5cs87034yan; Tue, 8 Feb 2011 03:10:31 -0800 (PST) Received: by 10.227.154.147 with SMTP id o19mr3433627wbw.149.1297163430848; Tue, 08 Feb 2011 03:10:30 -0800 (PST) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx.google.com with ESMTPS id d17si8414549wbd.95.2011.02.08.03.10.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Feb 2011 03:10:30 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of alexandros.frantzis@linaro.org) client-ip=74.125.82.42; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.42 is neither permitted nor denied by best guess record for domain of alexandros.frantzis@linaro.org) smtp.mail=alexandros.frantzis@linaro.org Received: by wwi17 with SMTP id 17so442043wwi.1 for ; Tue, 08 Feb 2011 03:10:30 -0800 (PST) Received: by 10.227.156.9 with SMTP id u9mr17220232wbw.142.1297163430282; Tue, 08 Feb 2011 03:10:30 -0800 (PST) Received: from localhost ([194.219.210.40]) by mx.google.com with ESMTPS id x1sm4304276wbh.2.2011.02.08.03.10.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Feb 2011 03:10:29 -0800 (PST) From: alexandros.frantzis@linaro.org To: cairo@cairographics.org Subject: [PATCH 5/6] gl: Add gl dispatch entries for functions related to vertex attributes Date: Tue, 8 Feb 2011 13:10:14 +0200 Message-Id: <1297163415-31035-6-git-send-email-alexandros.frantzis@linaro.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1297163415-31035-1-git-send-email-alexandros.frantzis@linaro.org> References: <1297163415-31035-1-git-send-email-alexandros.frantzis@linaro.org> From: Alexandros Frantzis --- 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);