[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function set-gl-vertex-array in Guile-opengl
From: |
Daniel Llorens |
Subject: |
Re: Function set-gl-vertex-array in Guile-opengl |
Date: |
Sat, 26 Jan 2019 16:39:36 +0100 |
> On 26 Jan 2019, at 17:05, Luis Souto Graña <address@hidden> wrote:
>
> 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.
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.
- Function set-gl-vertex-array in Guile-opengl, Luis Souto Graña, 2019/01/25
- Re: Function set-gl-vertex-array in Guile-opengl, Daniel Llorens, 2019/01/25
- Re: Function set-gl-vertex-array in Guile-opengl, Luis Souto Graña, 2019/01/25
- Re: Function set-gl-vertex-array in Guile-opengl, Daniel Llorens, 2019/01/26
- Re: Function set-gl-vertex-array in Guile-opengl, Daniel Llorens, 2019/01/26
- Re: Function set-gl-vertex-array in Guile-opengl, Luis Souto Graña, 2019/01/26
- Re: Function set-gl-vertex-array in Guile-opengl,
Daniel Llorens <=
- Re: Function set-gl-vertex-array in Guile-opengl, Luis Souto Graña, 2019/01/26
- Re: Function set-gl-vertex-array in Guile-opengl, Luis Souto Graña, 2019/01/28
- Re: Function set-gl-vertex-array in Guile-opengl, Luis Souto Graña, 2019/01/31