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? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal