chickadee » sdl2 » texture-w

texture-w textureprocedure

Get the sdl2:texture's width, as a nonnegative integer measured in pixels. This is equivalent to (nth-value 2 (query-texture texture)), but more convenient and efficient.

This procedure is available in sdl2 egg version 0.2.0 and higher.