Fix FFI mutability for upcoming texture class.
Add wrappers for Texture functions.