Re: Help with Pointers
- Posted by petelomax 4 days ago
- 96 views
From the perspective of Euphoria/Phix, glLightfv/poke(atom_to_float32()) should handle all the cases needed, or I
suppose you could check whether params is all int and if so use glLightiv/poke4. Just don't mix f/poke4 or i/to_f32.
I am in no position to say whether iv might produce grubbier/grainier results than fv, or vice-versa.
Should the results always be indistinguishable, then iv would be a (likely-non-measurable) smidge faster.
Otherwise, of course, totally agree with everything Greg said, except the potential iv/fv mixup (as existed in the OP).