From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Luis_Souto_Gra=C3=B1a?= Newsgroups: gmane.lisp.guile.user Subject: Re: Function set-gl-vertex-array in Guile-opengl Date: Sat, 26 Jan 2019 17:05:51 +0100 Message-ID: References: <36DB9AAC-0B1F-4E3F-9FEC-B25A180F07CE@bluewin.ch> <66F77153-4A14-470C-BEEA-F5D0A27CE4F9@bluewin.ch> Mime-Version: 1.0 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="58315"; mail-complaints-to="usenet@blaine.gmane.org" Cc: guile-user To: Daniel Llorens Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 26 16:06:26 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 1gnPXN-000F5Q-ML for guile-user@m.gmane.org; Sat, 26 Jan 2019 16:06:25 +0100 Original-Received: from localhost ([127.0.0.1]:60530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnPXM-0003MT-Et for guile-user@m.gmane.org; Sat, 26 Jan 2019 10:06:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnPX3-0003MJ-Ey for guile-user@gnu.org; Sat, 26 Jan 2019 10:06:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnPX1-00059N-HE for guile-user@gnu.org; Sat, 26 Jan 2019 10:06:05 -0500 Original-Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:39269) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnPX1-000579-CG for guile-user@gnu.org; Sat, 26 Jan 2019 10:06:03 -0500 Original-Received: by mail-io1-xd2c.google.com with SMTP id k7so10033428iob.6 for ; Sat, 26 Jan 2019 07:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BPrFKpWs+9KiiRiPjpfKdU8sX7WXm7+rsTpYveSOZAk=; b=rX3OLRL1H7/gRhFWCBtRo6zBq0vgNIHx9ZEGPz8htQ65JJAWiJ5SWvZCYLwYdwinKy hl24WTt4qPWxBz3Qkxp/qtiTvgskDijBl7Lb7H0ESbKv+BsuCBy1V5b9YxAJ0Z7t0BA0 S0Y3brj6sne1BRxWeMmRSH6iG2gkFwXiQQhqpBVQHaBrhw26hPppByMQFe2oRapxxgCV k3BJqH+c6XCjiJOdj81NUn6DDpFfiqdytonP8wjQ+owL+Uvfq5n3bjh2C4BhI2DwxRGU 2Nu2u2u8LJ/E8WjloVHrqXul14dfa5WHvcMk5ZALQZV3EPRxNuYwfigiJueQgaMojSqx U1hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BPrFKpWs+9KiiRiPjpfKdU8sX7WXm7+rsTpYveSOZAk=; b=sEg07E79NhR12rz/xpCTxG9Nwc+ZTNGsg12Eywxg9AKsdPaUj0n0oBzVO9ldFrnL4w plp2TnQvYd189KonWAlwD8qcNDRnkQyj6eUVsbjO9Ol5vdyy40KUpygqi8mIW4vaobHy og9Ryx6SMRekvM2a7f7Zwlj+G9H6FMcRLNU4QoHPon2VpOYg4XliecyLm8oLy51DsyXc Rw5rlM4KWbfGMf64RC9TldgqdLMGwqDBv2HXE/l2y2lpverq/GPQGu84xYsY5QbO9nul O77u/4ceoSykKKEvSoE6PuF8PUD+JxhInB0OThnfsitd3rFYDSYdMPpZMjapgB8R3wD6 tBwA== X-Gm-Message-State: AHQUAuZZ5W+d62qKKjGr90BHC/vLi9NZ1B2KNdHe3WXTG9RQxYUpi++h 3xLormgZ1GTXo9t3QsqAAkJwWex2ujkR4B+lksk= X-Google-Smtp-Source: ALg8bN7GatqnbwRyRx2GjYk3eZxSA8rQJ8Tx4mGE8XJZe9GiEx4ROOhgMilCo/K/TMyfpDAe9XEd3IO0djg6fuJo6d4= X-Received: by 2002:a5d:960e:: with SMTP id w14mr8205882iol.86.1548515161511; Sat, 26 Jan 2019 07:06:01 -0800 (PST) In-Reply-To: <66F77153-4A14-470C-BEEA-F5D0A27CE4F9@bluewin.ch> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2c X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:15262 Archived-At: The structure of my byvector is: 30.0(float) --- IEE754 converter --> 0x41F00000 (hexadecimal) --- little endian ---> 0000F041 --- hexadecimal to decimal converter ---> 00 00 240 65 But I didn't notice and there's a lot of zeros before the next 00 00 240 65. I have to study what is the structure of a f32vector in Guile. I don't know it. I also have to see what you said about #:stride 3 . Thanks. El s=C3=A1b., 26 ene. 2019 a las 13:58, Daniel Llorens (< daniel.llorens@bluewin.ch>) escribi=C3=B3: > > > > On 26 Jan 2019, at 13:52, Daniel Llorens > wrote: > > > > > > > >> On 26 Jan 2019, at 02:33, Luis Souto Gra=C3=B1a > wrote: > > > > > >>>> > >>>> ,apropos set-gl-vertex-array > >>> (gl): set-gl-vertex-array # >>> bv-or-pointer #:optional size #:key stride offset)> > >>> > >>> > >>>> (set-gl-vertex-array (bytevector->pointer points) 3) > >>> > > > > > > You should call set-gl-vertex-array like this: > > > > (set-gl-vertex-array (bytevector->pointer points) #:stride 3) > > Actually this #:stride should probably be 12 =3D 3*4, I think. > > > > >