[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Function set-gl-vertex-array in Guile-opengl
From: |
Luis Souto Graña |
Subject: |
Re: Function set-gl-vertex-array in Guile-opengl |
Date: |
Sat, 26 Jan 2019 17:05:51 +0100 |
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áb., 26 ene. 2019 a las 13:58, Daniel Llorens (<
address@hidden>) escribió:
>
>
> > On 26 Jan 2019, at 13:52, Daniel Llorens <address@hidden>
> wrote:
> >
> >
> >
> >> On 26 Jan 2019, at 02:33, Luis Souto Graña <address@hidden>
> wrote:
> >
> >
> >>>>
> >>>> ,apropos set-gl-vertex-array
> >>> (gl): set-gl-vertex-array #<procedure set-gl-vertex-array (type
> >>> 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 = 3*4, I think.
>
>
>
>
>
- 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 <=
- 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, Luis Souto Graña, 2019/01/28
- Re: Function set-gl-vertex-array in Guile-opengl, Luis Souto Graña, 2019/01/31