[fpc-pascal] Float packing

Marco van de Voort marcov at stack.nl
Mon Nov 6 14:23:19 CET 2017

In our previous episode, Karoly Balogh (Charlie/SGR) said:
> >
> > On Google I found a good method to have the compiler convert a word to
> > an array of bytes using variant records such as:
> I'm not particularly fond of this method, because this is not endian safe.
> It won't work on bigendian CPUs (which are marginal, and a thing of the
> past, sort of, but their heritage is still with us thanks to the network
> byte order, which is bigendian, and some languages like Java, which use
> bigendian internally).

I thought that OpenGL had a normalize paramter to glvertexattribpointer that
allowed to convert color values to vec4 (of singles, maybe vec3 too) ?

Or is it an uniform?

More information about the fpc-pascal mailing list