From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Llorens Newsgroups: gmane.lisp.guile.user Subject: Re: Function set-gl-vertex-array in Guile-opengl Date: Sat, 26 Jan 2019 13:58:52 +0100 Message-ID: <66F77153-4A14-470C-BEEA-F5D0A27CE4F9@bluewin.ch> References: <36DB9AAC-0B1F-4E3F-9FEC-B25A180F07CE@bluewin.ch> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59405"; mail-complaints-to="usenet@blaine.gmane.org" Cc: guile-user To: =?utf-8?Q?Luis_Souto_Gra=C3=B1a?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 26 13:59:34 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gnNYb-000FLc-3p for guile-user@m.gmane.org; Sat, 26 Jan 2019 13:59:33 +0100 Original-Received: from localhost ([127.0.0.1]:58928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnNYa-0005VI-3i for guile-user@m.gmane.org; Sat, 26 Jan 2019 07:59:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnNY1-0005VD-Ni for guile-user@gnu.org; Sat, 26 Jan 2019 07:58:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnNY0-000198-SA for guile-user@gnu.org; Sat, 26 Jan 2019 07:58:57 -0500 Original-Received: from vimdzmsp-sfwd01.bluewin.ch ([195.186.120.131]:42726) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gnNY0-00018L-LU for guile-user@gnu.org; Sat, 26 Jan 2019 07:58:56 -0500 Original-Received: from 4box.home ([100.91.106.162]) by vimdzmsp-sfwd01.bluewin.ch Swisscom AG with SMTP id nNXygJgC7Gbd1nNXyg3eEN; Sat, 26 Jan 2019 13:58:54 +0100 X-Bluewin-Spam-Analysis: v=2.1 cv=QtOTpQGd c=1 sm=1 tr=0 a=E/cB+Ag6Owp6h9AtTK67vw==:117 a=E/cB+Ag6Owp6h9AtTK67vw==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=fG5-Y9i2bbzQSleE0KAA:9 a=QEXdDO2ut3YA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[100.91.106.162] Epoch[1548507534] X-Bluewin-AuthAs: dll@bluewin.ch In-Reply-To: <36DB9AAC-0B1F-4E3F-9FEC-B25A180F07CE@bluewin.ch> X-Mailer: Apple Mail (2.3445.102.3) X-CMAE-Envelope: MS4wfEmIuks/X/d6lsc6kIEXigqTpXF17udZ69/Ff5wCzF0lNz3PFpaR6rx45XezVGI7reKDCaCd84zUrXOuXzueJNJqSRDHlBqdIEjTax0q1ufFJwLUnQzi H0R2LqtiRQlf7689xspxQQsca1u98VQFSOPSXyelVdkpTqpHjhCTiEr2bF0Vb4jBQmqPhFftm7P9vseBCM//0jfWDlbP5zy/nGc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.186.120.131 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15260 Archived-At: > On 26 Jan 2019, at 13:52, Daniel Llorens = wrote: >=20 >=20 >=20 >> On 26 Jan 2019, at 02:33, Luis Souto Gra=C3=B1a = wrote: >=20 >=20 >>>>=20 >>>> ,apropos set-gl-vertex-array >>> (gl): set-gl-vertex-array #>> bv-or-pointer #:optional size #:key stride offset)> >>>=20 >>>=20 >>>> (set-gl-vertex-array (bytevector->pointer points) 3) >>>=20 >=20 >=20 > You should call set-gl-vertex-array like this: >=20 > (set-gl-vertex-array (bytevector->pointer points) #:stride 3) Actually this #:stride should probably be 12 =3D 3*4, I think.