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 16:39:36 +0100 Message-ID: <0BE53CE6-E3F3-4D2B-AB56-DAEE9A87F114@bluewin.ch> References: <36DB9AAC-0B1F-4E3F-9FEC-B25A180F07CE@bluewin.ch> <66F77153-4A14-470C-BEEA-F5D0A27CE4F9@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="210407"; 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 16:40:13 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 1gnQ41-000sa2-F2 for guile-user@m.gmane.org; Sat, 26 Jan 2019 16:40:09 +0100 Original-Received: from localhost ([127.0.0.1]:60860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnQ40-0000eT-8p for guile-user@m.gmane.org; Sat, 26 Jan 2019 10:40:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnQ3b-0000eN-TX for guile-user@gnu.org; Sat, 26 Jan 2019 10:39:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnQ3a-0003an-Bg for guile-user@gnu.org; Sat, 26 Jan 2019 10:39:43 -0500 Original-Received: from vimdzmsp-sfwd05.bluewin.ch ([195.186.120.133]:57564) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gnQ3a-0003Yr-5O for guile-user@gnu.org; Sat, 26 Jan 2019 10:39:42 -0500 Original-Received: from 4box.home ([100.91.106.162]) by vimdzmsp-sfwd05.bluewin.ch Swisscom AG with SMTP id nQ3XgaGdauZRunQ3XgOgJ3; Sat, 26 Jan 2019 16:39:39 +0100 X-Bluewin-Spam-Analysis: v=2.1 cv=ZuUgU4PG 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=9J9x14aAxSuWXs-fI_AA:9 a=QEXdDO2ut3YA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[100.91.106.162] Epoch[1548517179] X-Bluewin-AuthAs: dll@bluewin.ch In-Reply-To: X-Mailer: Apple Mail (2.3445.102.3) X-CMAE-Envelope: MS4wfAH6ba2xb3RSI1qdx08v3xWtf8tHxrADJKRDg9LDQN2JqVbytJ+uba+e14XXoimho13L4Hwz0zRrOkvcbH6sxpIUEEnyRetfXDBkbB1taTRAiuZ3zi1u gKuAdE6Jze5aNLBwJqjTjqOHEnDfYB3afaLG7EQqg8AY/D1PH/B367k7flAK5Nda81pnqrqShxkjJBB7+TOI7oEyF75oC2+N7wE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 195.186.120.133 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:15263 Archived-At: > On 26 Jan 2019, at 17:05, Luis Souto Gra=C3=B1a = wrote: >=20 > The structure of my byvector is: >=20 > 30.0(float) --- IEE754 converter --> 0x41F00000 (hexadecimal) --- = little endian ---> 0000F041 --- hexadecimal to decimal converter ---> 00 = 00 240 65 >=20 > But I didn't notice and there's a lot of zeros before the next 00 00 = 240 65.=20 >=20 > I have to study what is the structure of a f32vector in Guile. I don't = know it.=20 The storage of an f32vector is exactly the same as if you declared float = a[n] in C, one float after another, each taking 4 bytes. Endianness = doesn't matter if you are producing and consuming the floats on the same = machine. The source data is floats, OpenGL takes floats, you don't need to deal = with bytes.