GRAPHICS: Refactoring

Rename some variables and functions of the graphics drivers to distinguish properly betwen textures and materials.