olofson / eel

The Extensible Embeddable Language for scripting in realtime applications
http://eelang.org/
zlib License
46 stars 4 forks source link

Eelium: Interpolating SDL.GetPixel() #99

Closed olofson closed 8 years ago

olofson commented 8 years ago

Add a filtering/interpolating version of SDL.GetPixel(), that accepts 'real' coordinates. It should probably be a separate function, so that applications don't have to typecast coordinates to 'integer' to avoid accidentally activating interpolation. (Also, leaving the casting to the C function has much less performance impact than cast VM instructions.)