Simplified texture API, now allows to specify texture format directly (e.g. 16 bpp instead of 32).