Added C-like API for Texture