Updated texture API
* Added base texture class
* Clearly separated texture 1D, 2D and 3D
* Added texture parameter querying