Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

Add getSize() method for Surface class #32

Closed basiliscos closed 9 years ago

basiliscos commented 9 years ago

It is useful to determine loaded image size. The Texture::query() cannot be used if the loaded image is large (sprite).

Thanks!

Tangent128 commented 9 years ago

Thank you; adding the documentation to a wiki page would be appreciated also.